Skip to content

Instantly share code, notes, and snippets.

@electronut
Created October 29, 2017 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electronut/481480942a39576438275c95bd9ef78f to your computer and use it in GitHub Desktop.
Save electronut/481480942a39576438275c95bd9ef78f to your computer and use it in GitHub Desktop.
stm32-conway-init.cpp
// initialize
void Conway64::init()
{
// set up display
_max7219->power(true);
_max7219->setIntensity(5);
_max7219->setScanLimit(7);
_max7219->clear();
// create Conway task
osThreadDef(conwayTask, conwayTaskFunc, osPriorityNormal, 0, 128);
_conwayTaskHandle = osThreadCreate(osThread(conwayTask), this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment