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
/* | |
Reads a digital input on pin 2, prints the result to the serial monitor | |
*/ | |
void setup() { | |
// initialize serial communication at a baud rate of 9600 bits per second: | |
// this is the rate at which the two machines speaks and listen - of they are ste differently the result is gibberish | |
Serial.begin(9600); | |
// set pin 2 to operate as an input form the button: |
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
0x10afa70143dc4f099f729815683327b0f927c81b |
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
0xcaa36B42CE31Bd866Bfc23D76bDCD727DB2D070a |
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
0x68B28E2D3414d4B7e365b8BDBB2B42A136d21912 |
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
int noIterations = 100; | |
int degreesRotate = 15; | |
int size =100; | |
int circDist = 40; | |
int [][] rgbValues = new int[3][4]; | |
void setup() { | |
size(800, 600); |
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 <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <SPI.h> | |
#include <Adafruit_SSD1306.h> | |
#define OLED_RESET 4 | |
Adafruit_SSD1306 display(OLED_RESET); | |
void setup() { |
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 <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <SPI.h> | |
#include <Adafruit_SSD1306.h> | |
#define OLED_RESET 4 | |
Adafruit_SSD1306 display(OLED_RESET); | |
void setup() { |
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 <Wire.h> // these are all the libraries we need for working with our screen. | |
#include <SPI.h> | |
#include <Adafruit_SSD1306.h> | |
#include <Adafruit_GFX.h> | |
#define OLED_RESET 4 // here we get the screen ready for sending instructions to using the libraries above | |
Adafruit_SSD1306 display(OLED_RESET); | |
int x = 0; // this is an important new step - here we are making a container called X to put a number in. | |
//this is a container that can only fit integers inside of it - an integer is a whole number (the ones we count with) |
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 <Wire.h> // these are all the libraries we need for working with our screen. | |
#include <SPI.h> | |
#include <Adafruit_SSD1306.h> | |
#include <Adafruit_GFX.h> | |
#define OLED_RESET 4 // here we get the screen ready for sending instructions to using the libraries above | |
Adafruit_SSD1306 display(OLED_RESET); | |
int x = 0; // this is an important new step - here we are making a container called X to put a number in. | |
//this is a container that can only fit integers inside of it - an integer is a whole number (the ones we count with) |
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_GFX.h> // these things at the top just load a bunch of libraries we need to run the screen. | |
#include <SPI.h> // libraries are collections of code that have been written by others so we don't | |
#include <Wire.h> // don't have to. | |
#include <Adafruit_SSD1306.h> //we need these for libraries to make our screen easier to use. | |
#define OLED_RESET 4 // this code resets the display. | |
Adafruit_SSD1306 display(OLED_RESET); // | |
void setup() { //remember that anyhting here runs the first time we run the code and only the first time |
NewerOlder