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

In my AudioTools I have quite a few sound effects and it is a point to test them all. In order to make my life a little bit easier I decided to make my framework usable in Jupyterlab.

xeus-cling is a Jupyter kernel for C++ based on the C++ interpreter cling and the native implementation of the Jupyter protocol xeus. So we can use the AudioTools directly in Jupyterlab with Xeus/Cling!

See here

Clone this wiki locally