| Arduino Forum ::  Members :: 32teeth
 Show Posts Pages: [1] 2 3 ... 7
 1 Using Arduino / Microcontrollers / Re: Arduino Nano - A6/A7 internal pull-up resistors on: February 11, 2014, 10:43:24 am You can actually use A6 and A7 as 'digital' pins with a little bit of logic in your codebelow is my craptastic  exampleCode:int pinStateA6 = 0;int pinStateA7 = 0;void setup(){}void loop(){     pinStateA6 = analogRead(A6) > 100 ? 0 : 1;     pinStateA7 = analogRead(A7) > 100 ? 0 : 1;}
 2 Using Arduino / Microcontrollers / Re: 1284P top mount card on: February 10, 2014, 10:19:56 am Can you share the SCH and BRD files?
 3 Using Arduino / Programming Questions / Re: bitwise operation (C++ vs C vs Arduino) on: December 04, 2013, 02:32:53 pm in reference to http://forum.arduino.cc/index.php?topic=72631.0 this has been solvedCode:int r = 255;int g = 154;int b = 53;/**** you need to implement unsigned long casting****unsigned long color = ((r & 0x0ff)<<16)|((g & 0x0ff)<<8)|(b&0x0ff);**//unsigned long color = (unsigned long)r << 16 | (unsigned long)g << 8 | (unsigned long)b;void setup() {  Serial.begin(115200);}void loop() {  delay(1000);  Serial.println(color);}
 4 Using Arduino / Programming Questions / bitwise operation (C++ vs C vs Arduino) on: December 04, 2013, 02:27:20 pm hi all,quick question (maybe i am doing something wrong)i am trying to use bitwise operators to convert red green and blue values to an unsigned long, in C and C++ i get the expected output, in Arduino IDE, i get some odd number.  see belowC++Code:int r = 255;int g = 154;int b = 53;unsigned long color = ((r & 0x0ff)<<16)|((g & 0x0ff)<<8)|(b&0x0ff);#include int main(){std::cout << color;}color = 16751157C(vanilla)Code:int r = 255;int g = 154;int b = 53;unsigned long color = ((r & 0x0ff)<<16)|((g & 0x0ff)<<8)|(b&0x0ff);#include int main(void){  printf("%lu", color);  return 0;}color = 16751157Arduino IDECode:int r = 255;int g = 154;int b = 53;unsigned long color = ((r & 0x0ff)<<16)|((g & 0x0ff)<<8)|(b&0x0ff);void setup() {  Serial.begin(115200);}void loop() {  delay(1000);  Serial.println(color);}color  = 4294941237 any insight wold be very much appreciated
 5 Using Arduino / Displays / Re: Which touchscreen works with Leonardo on: August 27, 2013, 11:25:47 am you can use the 4d shield with the leonardoCode:  /*    Picaso Display  */  /*  // uncomment if using alternate tx/rx pins  #include   #define DisplaySerial SerialSoft  SoftwareSerial DisplaySerial(5,6);  */  // uncomment if using uno with standard tx/rx pins  //#define DisplaySerial Serial  // uncomment if using leonardo  //#define DisplaySerial Serial1
 6 General Category / General Discussion / Re: Adding 3rd Party Boards to Arduino 1.5.x on: November 30, 2012, 10:13:35 am Quote from: Jantje on November 29, 2012, 08:15:27 pmThanks for sharingIt can indeed do some work but it is good enough or a first release.best regardsJantjethanks for the commentsi have started looking into a 'package' creator where you drop your files into, run a batch, take your new folder and plop it into arduino environmentif anyone wants to help, hit me up
 7 General Category / General Discussion / Adding 3rd Party Boards to Arduino 1.5.x on: November 29, 2012, 03:20:15 pm Hey EveryoneI wanted to share a quick resource i created for adding 3rd party boards to the new Arduino 1.5.x IDE.Have a read through. It's pretty high level.third party not invitedhow to get your variant mcu working in arduino 1.5.xIt walks you through the platform, programmer and board files structure so you can do cool stuff like this
 8 Using Arduino / Microcontrollers / Re: Arduino on a stick on: September 17, 2012, 02:24:01 pm Wow, this is greatAny chance you will be releasing design files and boot loader?
 9 Using Arduino / Project Guidance / Re: Output as USB Joystick help. on: May 08, 2012, 12:08:26 pm If you need, i have a hex file for the PS3 controller including the magic bytes for the PS3 button.https://sparky.svn.beanstalkapp.com/sparky/trunk/Arduino%20Files/__DEV__/SparkyPS3/gamepad.hexif you need the source, send me a PM
 10 Development / Other Software Development / theme update on: March 21, 2012, 01:04:33 pm Just wanted to share a theme update of minetheme is herehttp://32teeth.org/arduinotheme.zip
 11 Using Arduino / Microcontrollers / Re: adafruit 32u4 breakout on: January 17, 2012, 10:12:41 am Yes, it will output serial to the Serial Monitor.You need to change your baud rate to 1200Code:Serial.begin(1200);
 12 Using Arduino / Programming Questions / Re: Bootloader Make file error - help needed on: December 16, 2011, 09:22:39 am attempting in Cygwin produces thisCode:\$ makeavr-gcc -Isrc/. -g -Wall -Os -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO_MODEL_                               PID=0x0034  -ffunction-sections -gdwarf-2 -fdata-sections -fno-split-wide-types                                -c src/./DiskLoader.cpp -MD -o build/./DiskLoader.oprocess_begin: CreateProcess(NULL, avr-gcc -Isrc/. -g -Wall -Os -mmcu=atmega32u4                                -DF_CPU=16000000L -DARDUINO_MODEL_PID=0x0034 -ffunction-sections -gdwarf-2 -fda                               ta-sections -fno-split-wide-types -c src/./DiskLoader.cpp -MD -o build/./DiskLoa                               der.o, ...) failed.make (e=2): The system cannot find the file specified.make: *** [build/./DiskLoader.o] Error 2
 13 Using Arduino / Programming Questions / Re: Bootloader Make file error - help needed on: December 16, 2011, 09:17:01 am Hmm, i have attempted on OSX Lion, and Windows 7I believe there is a conflict between avrdude and arduino's avrdudei changed the environment variables to point to arduino's version and still the same issueany suggestions would help.i typically don't get errors when building make files for other avr projects
 14 Using Arduino / Programming Questions / Bootloader Make file error - help needed on: December 16, 2011, 06:26:06 am Hey all.I have a project and i have been wanting to change the speed of the clock for the bootloader.Inside the make file of any of the bootloaders there is a line for frequencyThis one is specifically for manipulating the Leonardo Diskloader.Code:MCU = atmega32u4AVR_FREQ   = 16000000LSo this can be easily changed in any text editor.Now, when i go into my terminal and run 'make' on that folder i get plenty of error when attempting to recompile the bootloader.First: This command gets autorunCode:avr-gcc -Isrc/. -g -Wall -Os -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO_MODEL_PID=0x0034  -ffunction-sections -gdwarf-2 -fdata-sections -fno-split-wide-types -c src/./DiskLoader.cpp -MD -o build/./DiskLoader.oErrors:Code:cc1plus: error: unrecognized command line option "-fno-split-wide-types"Code:unknown MCU 'atmega32u4' specifiedand finallyCode:src/./DiskLoader.cpp:1: warning: -ffunction-sections may affect debugging on some targetsmake: *** [build/./DiskLoader.o] Error 1has anyone had success doing something like this?
 15 Using Arduino / Microcontrollers / Re: ATMEGA32U4 Breakout Board Issue - Analog Pins as Digital on: December 14, 2011, 06:38:31 am Thanks CrossRoads. I double checked my pin assignment in the code and it is accurate to my wiring and the pins_arduino.hAlthough while double checking my design to the pins_arduino.h i noticed some duplication of port usage for A6 - A11 (see below)Quote from: CrossRoads on December 14, 2011, 12:15:49 amconst uint8_t PROGMEM digital_pin_to_port_PGM[30] = {   PD, // D0 - PD2   PD,   // D1 - PD3   PD, // D2 - PD1   PD,   // D3 - PD0   PD,   // D4 - PD4   PC, // D5 - PC6   PD, // D6 - PD7   PE, // D7 - PE6      PB, // D8 - PB4   PB,   // D9 - PB5   PB, // D10 - PB6   PB,   // D11 - PB7   PD, // D12 - PD6   PC, // D13 - PC7      PB,   // D14 - MISO - PB3   PB,   // D15 - SCK - PB1   PB,   // D16 - MOSI - PB2   PB,   // D17 - SS - PB0      PF,   // D18 - A0 - PF7   PF, // D19 - A1 - PF6   PF, // D20 - A2 - PF5   PF, // D21 - A3 - PF4   PF, // D22 - A4 - PF1   PF, // D23 - A5 - PF0      PD, // D24 / D4 - A6 - PD4   PD, // D25 / D6 - A7 - PD7   PB, // D26 / D8 - A8 - PB4   PB, // D27 / D9 - A9 - PB5   PB, // D28 / D10 - A10 - PB6   PD, // D29 / D12 - A11 - PD6};Does the Leonardo do some kind of multiplexing on those pins?I did notice in the datasheet that these are ADC8 - ADC13, but as i understand you either would use them as A6-A11 or D4, D6, D8, D9, D10, D12 not both. Also asked this in the Adafruit forum and got this answer about the lack of Digital support on Analog 0-5"this is a bug in the leonardo support for Arduino - its still beta so we suspect it will be fixed when its out of beta ""this is part of the IDE itself, no idea how to fix it."
 Pages: [1] 2 3 ... 7