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
/* | |
Setup: | |
A0 <-> 3.3V | |
A9 <-> A7 | |
A9 <-> 5 | |
A3 -> floating | |
expected behavior: | |
digitalRead(A0) == 1 |
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
From d0ce7cd7f072aa6cd641a2110b2f269986875f7b Mon Sep 17 00:00:00 2001 | |
From: Martino Facchin <[email protected]> | |
Date: Fri, 20 Mar 2015 13:07:38 +0100 | |
Subject: [PATCH] Fix examples on eeprom library v2 | |
--- | |
.../EEPROM/examples/eeprom_crc/eeprom_crc.ino | 4 +- | |
.../EEPROM/examples/eeprom_get/eeprom_get.ino | 4 +- | |
.../examples/eeprom_iteration/eeprom_iteration.ino | 19 +---- | |
.../examples/eeprom_pointer/eeprom_pointer.ino | 74 ----------------- |
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
# extracted from https://github.com/arduino/YunBridge | |
('a', CONNECTED_Command()) | |
('b', WRITE_TO_ALL_Command()) | |
('c', CONNECTING_Command()) | |
('d', DATASTORE_GET_Command()) | |
('f', CLOSE_Command()) | |
('g', WRITE_Command()) | |
('i', ISDIRECTORY_Command()) | |
('j', CLOSE_Command()) |
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
/* | |
leo_usb2serial | |
Allows to use an Arduino Leonardo as an usb to serial converter. | |
*/ | |
void setup() { | |
Serial.begin(115200); | |
Serial1.begin(115200); | |
} |
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
const int pwmPin = 13; | |
const int inPin = 3; | |
const int pulseLenIn = 50; | |
int pulseLen; | |
volatile boolean l; | |
void TC3_Handler() | |
{ | |
TC_GetStatus(TC1, 0); | |
digitalWrite(pwmPin, l = !l); |
NewerOlder