Examples
File |
Demonstrates |
|---|---|
|
Flash string and UART transmit |
|
UART receive, |
|
|
|
GPIO output and busy delay |
|
Hardware self-test; waits for |
|
Prints |
|
Repeating UART hello |
|
UART hello routed to the SAO header |
|
LED-matrix Tetris |
|
3D wireframe cube |
|
4x8 signed-nibble wave field |
|
Falling-water cellular automaton |
|
Imports for UART, strings, math, trig, memory, random, keys, clock, power, and display |
|
Struct fields and arrays of structs |
|
5x8 scrolling text |
|
Square-wave melody on |
|
PDM sample playback on |
|
Inline |
|
16-bit integers, casts, |
|
32-bit integers, casts, and arithmetic |
|
32-bit arithmetic self-test |
|
Pi digits over UART and on the LED matrix |
|
W5500 |
|
UDP sender |
|
Minimal HTTP server |
|
LED-matrix and dimmer controls |
|
Socket-state diagnostics |
|
Minecraft 1.8.9 void server |
Tetris controls
Key |
Action |
|---|---|
|
Left |
|
Right |
|
Rotate |
|
Soft drop |
Build and run
python3 -m niblick examples/hello.nbl --run
python3 -m niblick examples/tetris.nbl --symbols
Generated .asm and .hex files are ignored by Git. make clean removes
them.