-
Notifications
You must be signed in to change notification settings - Fork 108
Samples:Calamari Lure
Diagram:
Expected behavior/results: This sample uses the Calamari's lever to change the intensity of the light of LED1 and LED2. Their light intensity should change from 0 to maximum.
Uses a timer to loop an accumulator from 0 to 15 and display using MinnowBoard's Calamari Lure 7-segment display. It is an example of:
- wallclock/second node type (emits a package per second)
- accumulator node type
- calamari/7seg (controls the Calamari Luire 7-segment display)
- Using an alias (SevenSegments) for a node type configured in the .conf file
Diagram:
Expected behavior/results: Upon the sample execution, the seven segments display must start to display hexadecimal numbers, from 0 to F, one per second.
Diagram:
Expected behavior/results: In this sample, the 7 segments display shows a number (in hexadecimal) from 0 to 15, depending on the position of the lever. So, moving the lever should change the value displayed by the 7seg display.
Diagram:
Expected behavior/results: Upon the sample execution, the seven segments display will show the letters of the word 'PLAY'.
Diagram:
Expected behavior/results: The Calamari lure has a RGB led, identified as LED3 on the board. Running this sample should make this LED blink, changing colors.
Diagram:
Expected behavior/results: This sample assigns each one of the buttons (S1, S2 and S3) to a color of the RGB led. Pressing S1 should make the LED red, S2 green and S3 blue. An output is generated in the console, identifying which button was pressed.