
COME FAR ACCENDERE LE LUCI AL
ROBOTTINO
Per far accendere le luci al robottino dovrete utilizzare per la scrittura a blocchi il codice qui sotto riportato:

Invece per far accendere le luci al robottino in avanti dovrete utilizzare per la scrittura in arduino il codice qui sotto riportato:
// generated by mBlock5 for mBot
// codes make you happy
#include <MeMCore.h>
#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>
MeRGBLed rgbled_7(7, 2);
void _delay(float seconds) {
long endTime = millis() + seconds * 1000;
while(millis() < endTime) _loop();
}
void setup() {
rgbled_7.fillPixelsBak(0, 2, 1);
while(1) {
rgbled_7.setColor(0,93,255,0);
rgbled_7.show();
rgbled_7.setColor(0,255,255,255);
rgbled_7.show();
rgbled_7.setColor(0,255,0,0);
rgbled_7.show();
_loop();
}
}
void _loop() {
}
void loop() {
_loop();
}