This file contains hidden or 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 n; // display row counter | |
void setup() { | |
for (int z = 2; z < 14; z++) { | |
pinMode(z, OUTPUT); // all pins output for driving the LED matrix | |
} | |
//digitalWrite(5, HIGH); // all pins output for driving the LED matrix | |
//digitalWrite(12, HIGH); // all pins output for driving the LED matrix |
This file contains hidden or 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
byte imageMem[8] = { // display buffer | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}; | |
float speed_x = 1; // ball variables: speed & positions(pos_x/pos_y) | |
float speed_y = 0.5; // transversal speed (y axis) | |
float pos_x = 0; // ball position in axis | |
float pos_y = 4; // Range for the complete paddle bat design from 1 up to 6 | |
float paddle_l, paddle_r; // paddle positions | |
int n; // display row counter | |
void setup() { |
This file contains hidden or 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
#define AUTOPLAY true | |
byte imageMem[8] = { // display buffer | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}; | |
float speed_x = 1; // ball variables: speed & positions(pos_x/pos_y) | |
float speed_y = 0.5; // transversal speed (y axis) | |
float pos_x = 0; // ball position in axis | |
float pos_y = 4; // Range for the complete paddle bat design from 1 up to 6 | |
float paddle_l, paddle_r; // paddle positions | |
int n; // display row counter |
This file contains hidden or 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 <FlexiTimer2.h> // use timer for sampling to get even time base for data | |
#define INVERTED_INPUT_PIN 10 | |
const int READ_PWM_PIN = A0; | |
const int READ_FILTERED_PIN = A1; | |
const int READ_DIGITAL_PIN = 8; | |
int inverted_value = 0; | |
void setup() { |
This file contains hidden or 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 <FlexiTimer2.h> // use timer for sampling to get even time base for data | |
const int READ_SINE_PIN = A0; | |
const int READ_OUTPUT_PIN = A1; | |
int inverted_value = 0; | |
void setup() { | |
Serial.begin(115200); // initialize serial communications (to match that used by PlotNValues.pde) |
This file contains hidden or 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
void setup() { | |
// initialize digital ATtiny pin 0 as an output. | |
pinMode(0, OUTPUT); | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level) | |
delay(100); // wait for a 100 ms | |
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW |
This file contains hidden or 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
const int Red = 0; | |
const int Green = 1; | |
const int Blue = 2; | |
volatile uint8_t* Port[] = {&OCR0A, &OCR0B, &OCR1B}; | |
void setup() { | |
DDRB |= (1 << DDB4) | (1 << DDB1) | (1 << DDB0); |
This file contains hidden or 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 <FlexiTimer2.h> // use timer for sampling to get even time base for data | |
const int READ_A0_PIN = A0; | |
const int READ_A1_PIN = A1; | |
const int READ_A2_PIN = A2; | |
int inverted_value = 0; |
This file contains hidden or 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
/* | |
Project name: | |
04 #kidSerie - Arduino + HC06 + MIT App Inventor 2 + Sliding | |
Leds (see details also in video below!) | |
Flavour I - | |
Hex File: _04_kidSerie_sketch_01_bluetooth_SlidingLeds.ino | |
Revision History: | |
20161020: | |
- board found on youtube https://youtu.be/8CjL5JB6YfI | |
Description: |
This file contains hidden or 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
/* | |
Project name: | |
ABC Project: Arduino, Bluetooth and Compass V1.0 - 24 #arduSerie | |
(ABC project - Arduino, Bluetooth and Compass Project!!!) | |
Flavour III - Final Result | |
Hex File: _24_arduSerie_Arduino_Bluetooth_Compass.ino | |
Revision History: | |
20161231: | |
- from How To Make a Compass using Arduino and Processing IDE | |
by Dejan Nedelkovski |
OlderNewer