Examples and User Code for Kanga Dev Board
The kanga Dev Board is designed to allow beginners and more advance programmers to have a simple way to learn and test their code. Comes with a Arduino compatible nano module and OLED screen
The Dev board offers easy programming access to a 0.96 inch OLED display, 3 Analogue input controls, a sounder with adjustable volume, 4 digital input push buttons and 8 digital output LED's, also a couple of I2C connections points for users own sensors or addons.
The code samples below are just examples to get you started, there are many ways to achieve the same outcome so please don't take these examples as the only way to do something. they are just starting points. if you are just starting to learn how to program then start with the level 1 examples, load them try and understand them and modify them. this is not a coding course , there are many sites on the web that could help you learn , google is your friend!
Library Files for OLED display
In order to use certain addons you need to install library files that tell you software how to work with your addon. this one is for the OLED display that came with the kit.
Simple Full Board Test Code
This should be the first block of code you enter to test your board is full working , it will test all inputs/outputs and screen
Board I/O code definition's
This is just code snippet that defines all the I/O on the board. a explanation of why we have chosen the I/O setup is detailed in the boards instructions but this snippet makes it easier to understand for your own programmes
Simple LED Blink
This must be the most common starting point, simply makes a led flash. Modify it to flash more than 1 led, change the flash rate, maybe flash alternative LED's lots of scope to learn.
Flash Alternative LED's
So now we will flash two LED's alternatively, a expansion on the standard Blink code
Button Control Of LED
Use a single button to turn on a LED
Variable Speed Flash
This code will allow the control of the flash rate of a LED by using the first Analogue input control on the board
Simple code Oscillator
This code generates a 700Hz tone while the button is pressed, would make a simple Morse Practice oscillator
Vari-Tone Oscillator
Like the code practice oscillator but now control A0 will allow the pitch to be changed between 200 and 1200Hz
