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
/* | |
* NoPartsBatteryGuageAVR.c | |
* | |
* This is a simplified demonstration of how to detect power supply voltage by using the on chip | |
* analog-to-digital converter to measure the voltage of the internal band-gap reference voltage. | |
* | |
* The code will read the current power supply voltage, and then blink an LED attached to pin 6 (PA7). | |
* | |
* 1 blink = 1 volts <= Vcc < 2 volts (only applicable on low voltage parts like ATTINY84AV) | |
* 2 blinks = 2 volts <= Vcc < 3 volts |
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
// RGB_Tiny Board Testing for Common Anode Rgb Leds | |
// with LOW it lgiths up the led and with HIGH it lights off because its INVERTED due to common anode rgb led | |
/*. | |
ATTiny85 Pinout | |
(PCINT5/!RESET//ADC0/dW)PB5 -1 8- VCC | |
(PCINT3/XTAL1/CLK1/!OC1B/ADC3)PB3 -2 7- PB2(SCK/USCK/SCL/ADC1/T0/INT0/PCINT2) | |
(PCINT4/XTAL2/CLK0/OC1B/ADC2)PB4 -3 6- PB1(MISO/D0/AIN1/OC0B/OC1A/PCINT1) | |
GND -4 5- PB0(MOSI/D1/SDA/AIN0/OC0A/!OC1A/AREF/PCINT0) | |
*/ |
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 sensorPin = A0; // select the input pin for the potentiometer | |
int sensorValue = 0; // variable to store the value coming from the sensor | |
void setup() { | |
Serial.begin(9600); | |
while (!Serial) { | |
; // wait for serial port to connect. Needed for Leonardo only | |
}} | |
void loop() { |
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
; Test if instruction after I bit in SREG is set is always run | |
; More info at http://wp.josh.com/2016/01/05/different-ways-to-set-i-bit-in-avr-sreg-besides-sei/ | |
jmp start // Reset vector | |
.org INT0addr | |
INT0_handler: | |
loop1: |
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
andlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler | |
java.util.logging.ConsoleHandler.level=ALL | |
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter | |
java.util.logging.FileHandler.level=ALL | |
java.util.logging.FileHandler.pattern=e821server.log | |
# Write 10MB before rotating this file | |
java.util.logging.FileHandler.limit=10000000 |
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
2016.02.24 13:01:18 <<<< Logging Started (level is LTF_TRACE) >>>> | |
2016.02.24 13:01:18 Resource manager terminated | |
2016.02.24 13:40:00 <<<< Logging Started (level is LTF_TRACE) >>>> | |
2016.02.24 13:40:00 [email protected]: Synch operation started (flags = 00000001) | |
2016.02.24 13:40:00 [email protected]: UploadItems: 0 messages to send | |
2016.02.24 13:40:00 [email protected]: Synch operation completed |
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
// **************** TimerShot for Timer 1A ********************* | |
// More info about this program is here... | |
// http://wp.josh.com/2015/03/05/the-perfect-pulse-some-tricks-for-generating-precise-one-shots-on-avr8/ | |
// Demo of a technique to generate various precise one shot pulses using | |
// timer 1 module on an AVR. This demo code version is writen for an Arduino Uno or Mega2560 for the | |
// the Timer1 moudule, but this technique should would on other 16-bit AVR timers on Mega2560. | |
// Original code by Josh Levine, hack by N2GX 8/30/2016. | |
// Long-pulse working solution for TIMER 1A One-Shot, edited from Josh's Timer2 code and a partial Timer3 solution |
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
// **************** TimerShot for Timer 1B ********************* | |
// More info about this program is here... | |
// http://wp.josh.com/2015/03/05/the-perfect-pulse-some-tricks-for-generating-precise-one-shots-on-avr8/ | |
// Demo of a technique to generate various precise one shot pulses using | |
// timer 1 module on an AVR. This demo code version is writen for an Arduino Uno or Mega2560 for the | |
// the Timer1 moudule, but this technique should would on other 16-bit AVR timers on Mega2560. | |
// Original code by Josh Levine, hack by N2GX 8/30/2016. | |
// Long-pulse working solution for TIMER 1B One-Shot, edited from Josh's Timer2 code and a partial Timer3 solution |
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
root@beaglebone:~# iw list | |
Wiphy phy0 | |
max # scan SSIDs: 4 | |
max scan IEs length: 2257 bytes | |
Retry short limit: 7 | |
Retry long limit: 4 | |
Coverage class: 0 (up to 0m) | |
Device supports RSN-IBSS. | |
Supported Ciphers: | |
* WEP40 (00-0f-ac: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
/* | |
* Attiny10 AIRBOAT PWM Motor control code | |
* | |
* Created: 12/2/2016 6:17:47 PM | |
* Author : josh | |
*/ | |
#include <avr/io.h> | |
#include <util/delay.h> |
OlderNewer