Skip to content

Using the Framework w o Arduino

Phil Schatzmann edited this page Nov 29, 2022 · 39 revisions

I support the use of this framework w/o the Arduino API. So you can use it e.g.

  • with a STM32 Cube IDE for STM32 programs
  • use it with Jupyter in the xeus-cling kernel

Overview

Just compile your program after adding this library e.g. with the help of cmake and make sure that the preprocessor variable ARDUINO is not defined!

The linker will notifiy you about the missing methods that you need to implement: They are declared in AudioLibs/NoArduino.h. Most likely you just need to provide:

  • delay() - pause in milliseconds
  • HardwareSerial:: write(const uint8_t *buffer, size_t size) - for the output of the logger
  • millis() - milliseconds since start

Jupyter

See here

Clone this wiki locally