Skip to content
Joshua Zenn edited this page Aug 22, 2015 · 11 revisions

When you build Octoduino, you have several options as to what features you would like to include. This is very useful if you have a low-memory device such as an UNO. If you are using PlatformIO, use the build_flags option when building like this -D IO_LOG_SD.

Core

CORE_STACK

Allows a call stack to be used for easier debugging. Note that this may use a lot of memory when opening a new PB file.

CORE_STACKSIZE

Requires a number to be assigned to it. Defaults to 10. Only enlarge if you have a bigger device.

Crash

CRASH_REBOOT

Will automatically reboot device when an error occurs. Not recommended for untested code/hardware configurations.

MSG

CRASH_MSG_DETAIL

When an error occurs, the system will show a detailed error message through the serial output channel. Note that this uses a considerable amount of program memory, and should not be used in a production environment.

SWAP

CONST

SWAP_CONST_BOOL

Enables bool constants, which can speed up program execution and lower SWAP usage at the cost of more program memory.

SWAP_CONST_NUM

Enables int constants (0-9), which can speed up program execution and lower SWAP usage at the cost of more program memory.

SWAP_CONST_CHAR

Enables char constants (a-z), which can slow down program execution, but significantly lower SWAP usage and I/O read times.

IO

Logging

IO_LOG_LCD

Allows a Hitachi HD44780 or compatible LCD display to be hooked up for output.

Notes:

  • There is a bug where the LCD code and SWAP use the same pin, which can lead to hardware failures.

IO_LOG_SERIAL

By default, Octoduino will always output serial data. If this option is enabled, it will wait for a computer with a serial console to connect before booting up.

IO_LOG_SD

Adds SD logging to the output stream.

Chat with us

Join the chat at https://gitter.im/NETponents/octoduino

Clone this wiki locally