Skip to content

Use without Arduino framework #596

Answered by Makuna
ygoe asked this question in Q&A
Sep 1, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

add a local Arduino.h file, add the ARDUINO_ARCH_AVR to compiler symbols, make sure the compiler symbol for F_CPU is correctly set, provide implementations for pinMode, digitialWrite, noInterrupts, Interrupts, micros, portOutputRegister, digitalPinToBitMask, and it should just work.

Look at NeoAvrMethod.h, the assembler is in one of the methods
void send_data_8mhz_800_PortD(uint8_t* data, size_t sizeData, uint8_t pinMask);
void send_data_8mhz_800_PortB(uint8_t* data, size_t sizeData, uint8_t pinMask);
void send_data_8mhz_400(uint8_t* data, size_t sizeData, volatile uint8_t* port, uint8_t pinMask);
void send_data_12mhz_800_PortD(uint8_t* data, size_t sizeData, uint8_t pinMask);
void send_d…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ygoe
Comment options

@Makuna
Comment options

Answer selected by Makuna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants