ColorMix Workshop
Zo stránky SensorWiki
NOTES:
- https://www.arduino.cc/en/Guide/PortableIDE
- https://ardublockly.embeddedlog.com/demo/index.html#
- https://github.com/BlocklyDuino/BlocklyDuino
- http://technologiescollege.github.io/Blockly-at-rduino/?lang=en&card=arduino_pro_mini&webaccess=false&localcodebender=true&url=./examples/./blink/blink.xml&toolboxids=CAT_LOGIC,CAT_LOOPS,CAT_MATH,CAT_VARIABLES,CAT_FUNCTIONS,CAT_ARDUINO,CAT_I2C,CAT_APDS_9960_RGB_Gesture,CAT_LED_RGB_CHAIN&toolbox=toolbox_arduino_all
-- toto posledne ma aj bloky na Adafruit color LEDky
- http://technologiescollege.github.io/Blockly-at-rduino/
- https://create.arduino.cc/projecthub/libreduc/blockly-rduino-create-code-with-blocks-b6d3e4
- http://blokkencode.ingegno.be/
- http://ingegno.be/01-blockly-4-arduino/
- https://github.com/carlosperate/ardublockly asi tu je aj navod ako to nainstalovat na svoj server
- https://github.com/BlocklyDuino/BlocklyDuino
ColorMix Workshop 15. 3. 2018
#include <Adafruit_NeoPixel.h> // kniznica - musi byt
#define ledPIN 10 // kam je pripojeny pasik
Adafruit_NeoPixel pasik = Adafruit_NeoPixel(5, ledPIN, NEO_GRB + NEO_KHZ800);
// 5 - pocet LED diod na pasiku
void setup() {
pinMode(ledPIN, OUTPUT);
pasik.begin(); // inicializacia
pasik.setPixelColor(0, pasik.Color(0,0,127) );
// ktora LEDka // Red, Green, Blue z intervalu 0 - 255
pasik_NeoPixels.show(); // jediny aktivny prikaz
}