Search found 13 matches

by nonentity
Wed Jan 01, 2014 3:32 am
Forum: LeoStick
Topic: Accelerometer Mouse Script
Replies: 1
Views: 1832

Accelerometer Mouse Script

Bit of fun using a leostick + am3x module + push button (to switch on/off)
by nonentity
Thu Jan 03, 2013 11:18 am
Forum: LeoStick
Topic: Timer
Replies: 2
Views: 2010

Re: Timer

Not really sure about MsTimer, but it sounds like you could just use the delay() function? ;)
by nonentity
Wed Oct 03, 2012 5:41 am
Forum: LeoStick
Topic: Rough capacitive touch sketch...
Replies: 1
Views: 1807

Re: Rough capacitive touch sketch...

4 touch variant... (halfway to a numeric keypad ;) )

Image
by nonentity
Tue Oct 02, 2012 3:09 am
Forum: LeoStick
Topic: Rough capacitive touch sketch...
Replies: 1
Views: 1807

Rough capacitive touch sketch...

Not really sure if this is the correct way, but it seems to be working =) http://img.techpowerup.org/121001/touch.jpg int Readpin = 11; // D10 int Rp2 = 10; int Squarepin = 12; boolean Squarehigh = false; float SmoothRun = 0; float xoWind(int adj, float valNow, int xAvg){ float retS = valNow + (adj ...
by nonentity
Sun Sep 16, 2012 2:43 pm
Forum: LeoStick
Topic: Extra Analog pins?
Replies: 1
Views: 1886

Re: Extra Analog pins?

=) little proof of concept sketch, able to read three push buttons using one pin and two 10ohm resistors /* ReadAnalogVoltageSwitch This example code is in the public domain. */ // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per se...
by nonentity
Fri Sep 07, 2012 1:29 pm
Forum: LeoStick
Topic: Extra Analog pins?
Replies: 1
Views: 1886

Extra Analog pins?

So, after poking around a bit... I think there might be upto 11 usable analog_read (?) pins on the LeoStick ? any idea if that is correct..?

here are the (possible?) digital pin No's with analog input =)

D4 > A6 || D6 > A8 || D8 > A9 || D9 > A10 || D10 > A11
by nonentity
Tue Sep 04, 2012 1:30 am
Forum: LeoStick
Topic: retroTone sketch ^^
Replies: 3
Views: 4457

Re: retroTone sketch ^^

a police siren-type noise const int buzzPin = 11; // piezo on pin 11 void retroToneII(int Freq1, int Freq2, int osc){ int uSdelay1 = 500000 / Freq1; int uSdelay2 = 500000 / Freq2; int uDelay = 0; for(int i=0;i<osc;i++){ // number of oscillations uDelay = map(i, 0, osc, Freq1, Freq2); digitalWrite(bu...
by nonentity
Mon Sep 03, 2012 1:49 pm
Forum: LeoStick
Topic: retroTone sketch ^^
Replies: 3
Views: 4457

retroTone sketch ^^

const int buzzPin = 11; // piezo on pin 11 // void retroTone(int Freq){ int uSdelay = 1000000 / (Freq * 2); pinMode(buzzPin, OUTPUT); for(int i=0;i<10;i++){ // number of oscillations // digitalWrite(buzzPin, HIGH); delayMicroseconds(uSdelay); digitalWrite(buzzPin, LOW); delayMicroseconds(uSdelay); ...
by nonentity
Wed Aug 29, 2012 3:16 am
Forum: LeoStick
Topic: How to unlock a LeoStick with a hung sketch (and why)
Replies: 8
Views: 15335

Re: How to unlock a LeoStick with a hung sketch (and why)

Ah, that also explains why it does upload (for the most part) without needing to press reset. =)

Is there any way of adding in the 'hidden part of the sketch' manually? i.e something like an interrupt on the rx/tx pin, and a soft reset after a particular signal?
by nonentity
Wed Aug 29, 2012 2:07 am
Forum: LeoStick
Topic: Simple Program to test RGB LED and Piezo
Replies: 2
Views: 2099

Re: Simple Program to test RGB LED and Piezo

Another little test script =) int buzzPin = 11; int Rled = 13; int Gled = 9; int Bled = 10; const int rgbSet[31] = {31, 63, 127, 192, 255, 192, 127, 63, 31, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; const int setSize = 30; int rgbStep[4] = {12,6,0,0}; void setup_Chirp(){ an...