This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno" | |
C:\Users\BLACKS~1\AppData\Local\Temp\arduino_modified_sketch_763688\SerialDisplay.pde:4:32: warning: invalid conversion from 'int' to 't_backlightPol' [-fpermissive] | |
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display | |
^ | |
In file included from C:\Users\BLACKS~1\AppData\Local\Temp\arduino_modified_sketch_763688\SerialDisplay.pde:2:0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gameEnabled = true; | |
digitalWrite(redLed,HIGH); | |
delay(100); | |
lcd.clear(); | |
lcd.print("New game"); | |
delay(1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local increment,target = 1,10 | |
for i = increment,target do | |
print(i) | |
end | |
outcome: | |
1 | |
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for int counter = 0; counter < 10000; counter++) { | |
switch (counter) { | |
case <10: | |
} | |
digitalWrite(pinDArray[digit], LOW); | |
for (int num = 0; num < 10; num++) { | |
switch (num) { | |
case 0: | |
for (int i = 0; i < pinCount; i++) { | |
digitalWrite(pinArray[i], segArray0[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64:1 (63.68395:1) gearing | |
Solarbotics Tested | |
Torque @5V: | |
FULL Step mode: 821gmf*cm (11.4in*oz) @ 200mA draw | |
HALF Step mode: 598gmf*cm (8.3in*oz) @ 256mA draw | |
2038 steps per revolution | |
4-phase unipolar stepper wiring through 23cm (9") long cable to 5-pin connector (0.1" pitch) | |
5V nominal voltage | |
~35 ohms coil resistance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LCD Start | |
#include <LiquidCrystal.h> | |
const byte rs = 12, | |
en = 11, | |
d4 = 5, | |
d5 = 4, | |
d6 = 6, | |
d7 = 7; | |
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(teller<=9){ | |
digitalWrite(REDLED,LOW); | |
digitalWrite(GREENLED,LOW); | |
digitalWrite(BLUELED,LOW); | |
lcd.clear(); | |
lcd.setCursor(0,0); | |
lcd.print("Now enter the"); | |
lcd.setCursor(0,1); | |
lcd.print("same combination!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buttonState = digitalRead(buttonPin); | |
if (buttonState != lastButtonState) { | |
if (buttonState == HIGH) { | |
redValue = random(0,255); | |
greenValue = random(0,255); | |
blueValue = random(0,255); | |
analogWrite(RED, redValue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define PIN 3 | |
#define NUMPIXELS 22 | |
Adafruit_NeoPixel strip(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_FONA.h> | |
#include <SoftwareSerial.h> | |
SoftwareSerial SIM5320(10,11); | |
void setup() { | |
Serial.begin(4800); |