]> git.piffa.net Git - sketchbook_andrea/commitdiff
Common, sequenze
authorAndrea Manni <andrea@piffa.net>
Mon, 13 Feb 2017 18:03:02 +0000 (19:03 +0100)
committerAndrea Manni <andrea@piffa.net>
Mon, 13 Feb 2017 18:03:02 +0000 (19:03 +0100)
libraries/common/common.cpp
libraries/common/examples/sequenza/sequenza.ino
libraries/common/keywords.txt
libraries/common/library.properties [new file with mode: 0644]

index 7f056275fd825bbeb550cba2a7953f41cce962a4..e696ff4321e279a9cfd7bc98e632980c78e7c21b 100644 (file)
@@ -112,6 +112,8 @@ void RGBLed::Off () {
 /////////////////////////////////////
 // Lampeggiatore
 // Constructor
+//
+// Esempi incrementali: https://lab.piffa.net/sketchbook_andrea/multitasking/
 Lampeggiatore::Lampeggiatore(int pin)
 {
     ledPin = pin;
@@ -175,19 +177,16 @@ void Lampeggiatore::Blink(long up, long down, long drift ) {
 
 void Lampeggiatore::High() {
     // Accende il LED
-
     digitalWrite(ledPin, HIGH);
 }
 
 void Lampeggiatore::Low() {
     // Spegne  il LED
-
     digitalWrite(ledPin, LOW);
 }
 
 void Lampeggiatore::Swap() {
     // Inverte lo stato del LED
-
     digitalWrite(ledPin, !digitalRead(ledPin));
 }
 
index bb9b46bd06b8be79e7b235bd134275264e909d5f..8a319d40440820f9e089c364eb0987fda0e5bd13 100644 (file)
@@ -24,7 +24,7 @@ byte pins[] = {  // PIN dei LED che compongono la sequenza
 Sequenza seq = Sequenza(pins,sizeof(pins)); // Array dei PINs, quanti elementi compongono l'array
 
 void loop() {
-  seq.Update(200); // Passa al segmento suciessivo ogni 200ms
+  seq.Update(200); // Passa al segmento successivo ogni 200ms
 };
 
 
index 1ef357be3f66b044303e436f483e8c05fa3405da..4e2d1333c17b40813f8ad24a5063a4698e617a58 100644 (file)
@@ -28,3 +28,4 @@ lSet          KEYWORD2
 lum                    KEYWORD2        
 Sequenza               KEYWORD1
 Update         KEYWORD2        
+calibraTrim                    KEYWORD2        
diff --git a/libraries/common/library.properties b/libraries/common/library.properties
new file mode 100644 (file)
index 0000000..8f17f8a
--- /dev/null
@@ -0,0 +1,9 @@
+name=Common: oggetti comuni non blocking
+version=1.0
+author=Andrea Manni <andrea@piffa.net>
+maintainer=Andrea Manni <andrea@piffa.net>
+sentence=Vari oggetti e funzioni per la gestione delle luci.
+paragraph=Elementi di base per lampeggi, fade e sequenze di luci tramite codice non blocking. Realizzati durante i corsi di Arduino di Andrea Manni su piffa.net .
+category=Display
+url=https://piffa.net
+architectures=*