Skip to content

Instantly share code, notes, and snippets.

View sinbrive's full-sized avatar

sinbrive sinbrive

View GitHub Profile
@sinbrive
sinbrive / PY0101EN-3-4-Classes.ipynb
Created April 23, 2020 09:30 — forked from rahulchinta97/PY0101EN-3-4-Classes.ipynb
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sinbrive
sinbrive / codageBinaire
Last active August 30, 2017 10:12
Lab binary coding
lab for binary teaching
-arduino code (for test)
-processing (adaoed from fabacademy Fabio Paradiso)
-processing version (my version)
-python version with Tkinter
-p5js version
// --------------------------------------------------------------------------- Motors
// These are the pins to the the motor drive chip for the left wheel
int motor_left[] = {12, 13};
// These are the pins to the the motor drive chip for the right wheel
int motor_right[] = {6, 7};
// --------------------------------------------------------------------------- Setup
void setup() {
Serial.begin(9600);
@sinbrive
sinbrive / sprintf.ino
Created May 27, 2017 14:00 — forked from philippbosch/sprintf.ino
sprintf() in Arduino code
unsigned int i = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
char buffer[50];
sprintf(buffer, "the current value is %d", i++);
Serial.println(buffer);