├── Crabator ├── Crabator.ino ├── bullets.ino ├── crate.ino ├── mobs.ino ├── pause_menu.ino ├── play.ino ├── sprites.ino └── world.ino ├── CurieHeartRateFaker └── CurieHeartRateFaker.ino ├── Dhrystone └── dhry21a │ ├── dhry.h │ └── dhry21a.ino ├── FIRBUINO ├── FIRBUINO.HEX ├── FIRBUINO.INF ├── FIRBUINO.ino ├── LICENSE ├── README.md └── img │ ├── Gameplay.gif │ ├── MainMenuScreen.png │ ├── MainMenuScreenx4.png │ ├── classic │ ├── ambulanceBitmap.png │ ├── ambulanceLightBitmap.png │ ├── ambulanceShadowBitmap.png │ ├── backgroundBitmap.png │ ├── livesBitmap.png │ ├── livesLightBitmap.png │ ├── playerBitmap.png │ ├── subBackgroundBitmap.png │ ├── survivor0Bitmap.png │ ├── survivor1Bitmap.png │ ├── survivor2Bitmap.png │ ├── survivor3Bitmap.png │ └── survivor4Bitmap.png │ ├── enhanced │ ├── ambulanceBitmap.png │ ├── ambulanceLightBitmap.png │ ├── ambulanceShadowBitmap.png │ ├── backgroundBitmap.png │ ├── livesBitmap.png │ ├── livesLightBitmap.png │ ├── playerBitmap.png │ ├── subBackgroundBitmap.png │ ├── survivor0Bitmap.png │ ├── survivor1Bitmap.png │ ├── survivor2Bitmap.png │ ├── survivor3Bitmap.png │ └── survivor4Bitmap.png │ ├── icon.png │ └── titleScreen.png ├── Gamebuino-Dhrystone ├── Gamebuino-Dhrystone.ino └── dhry.h ├── Gamebuino-Whetstone └── Gamebuino-Whetstone.ino ├── IOBench └── IOBench.ino ├── Leonardo_mocp_controller └── Leonardo_mocp_controller.ino ├── RC522.pdf ├── README.md ├── RFID.pdf ├── RFID2560 └── RFID2560.pde ├── S50.pdf ├── Serial └── Serial.pde ├── Snake ├── Emulator.exe ├── Snake.cpp.elf ├── Snake.cpp.hex ├── Snake.ino ├── game.png └── logo.png ├── SteveCurdBenchmark └── SteveCurdBenchmark.ino ├── Whetstone └── Whetstone.ino ├── WiFi_RTC └── WiFi_RTC.ino ├── cpc_nfc.zip ├── cpc_templight ├── cpc-templight.fzz └── cpc_templight.pde ├── epaper_image_processor └── epaper_image_processor.pde ├── fritzing ├── arduino-flasher-shield.fzz ├── barebonesduino.fzz ├── ledsketch.fzz ├── prosleepduino.fzz ├── sleepduino-standalone.fzz ├── sleepduino.fzz ├── sleepduino.zip ├── sleepduino2.fzz └── sleepduinostandalone.zip ├── hardware-broken ├── arduino │ ├── boards.txt │ └── bootloaders │ │ └── gamebuino_boot │ │ ├── README.TXT │ │ ├── boot.h │ │ ├── build.bat │ │ ├── flashdemo │ │ └── flashdemo.ino │ │ ├── gamebuino_boot.c │ │ ├── gamebuino_boot.hex │ │ ├── gamebuino_boot_simple.hex │ │ ├── loaddemo │ │ └── loaddemo.ino │ │ ├── makefile │ │ ├── mmc_fat.c │ │ ├── mmc_fat.h │ │ ├── pin_defs.h │ │ ├── prog_flash.c │ │ ├── prog_flash.h │ │ └── stk500.h ├── breadboard │ └── boards.txt ├── tiny │ ├── boards.txt │ ├── bootloaders │ │ └── empty │ │ │ ├── empty2313at1.hex │ │ │ ├── empty2313at8.hex │ │ │ ├── empty24at16.hex │ │ │ ├── empty25at1.hex │ │ │ ├── empty25at8.hex │ │ │ ├── empty4313at1.hex │ │ │ ├── empty4313at8.hex │ │ │ ├── empty44at1.hex │ │ │ ├── empty44at8.hex │ │ │ ├── empty45at1.hex │ │ │ ├── empty45at8.hex │ │ │ ├── empty84at1.hex │ │ │ ├── empty84at16.hex │ │ │ ├── empty84at8.hex │ │ │ ├── empty85at1.hex │ │ │ ├── empty85at16.hex │ │ │ └── empty85at8.hex │ ├── cores │ │ ├── empty │ │ │ ├── Arduino.h │ │ │ ├── WProgram.h │ │ │ └── main.cpp │ │ └── tiny │ │ │ ├── Arduino.h │ │ │ ├── HardwareSerial.cpp │ │ │ ├── HardwareSerial.h │ │ │ ├── Print.cpp │ │ │ ├── Print.h │ │ │ ├── PwmTimer.h │ │ │ ├── Stream.h │ │ │ ├── TinyDebugSerial.cpp │ │ │ ├── TinyDebugSerial.h │ │ │ ├── TinyDebugSerial115200.cpp │ │ │ ├── TinyDebugSerial38400.cpp │ │ │ ├── TinyDebugSerial9600.cpp │ │ │ ├── TinyDebugSerialErrors.cpp │ │ │ ├── Tone.cpp │ │ │ ├── ToneTimer.h │ │ │ ├── UserTimer.h │ │ │ ├── WCharacter.h │ │ │ ├── WConstants.h │ │ │ ├── WInterrupts.c │ │ │ ├── WMath.cpp │ │ │ ├── WProgram.h │ │ │ ├── WString.cpp │ │ │ ├── WString.h │ │ │ ├── binary.h │ │ │ ├── core_adc.h │ │ │ ├── core_build_options.h │ │ │ ├── core_macros.h │ │ │ ├── core_pins.h │ │ │ ├── core_timers.h │ │ │ ├── main.cpp │ │ │ ├── pins_arduino.c │ │ │ ├── pins_arduino.h │ │ │ ├── wiring.c │ │ │ ├── wiring.h │ │ │ ├── wiring_analog.c │ │ │ ├── wiring_digital.c │ │ │ ├── wiring_private.h │ │ │ ├── wiring_pulse.c │ │ │ └── wiring_shift.c │ ├── license.txt │ └── readme.txt └── tools │ └── avr │ └── avr │ └── include │ └── avr │ └── eeprom.h ├── hardware ├── arduino │ ├── boards.txt │ └── bootloaders │ │ └── gamebuino_boot │ │ ├── README.TXT │ │ ├── boot.h │ │ ├── build.bat │ │ ├── flashdemo │ │ └── flashdemo.ino │ │ ├── gamebuino_boot.c │ │ ├── gamebuino_boot.hex │ │ ├── gamebuino_boot_simple.hex │ │ ├── loaddemo │ │ └── loaddemo.ino │ │ ├── makefile │ │ ├── mmc_fat.c │ │ ├── mmc_fat.h │ │ ├── pin_defs.h │ │ ├── prog_flash.c │ │ ├── prog_flash.h │ │ └── stk500.h ├── breadboard │ └── boards.txt ├── tiny │ ├── boards.txt │ ├── bootloaders │ │ └── empty │ │ │ ├── empty2313at1.hex │ │ │ ├── empty2313at8.hex │ │ │ ├── empty24at16.hex │ │ │ ├── empty25at1.hex │ │ │ ├── empty25at8.hex │ │ │ ├── empty4313at1.hex │ │ │ ├── empty4313at8.hex │ │ │ ├── empty44at1.hex │ │ │ ├── empty44at8.hex │ │ │ ├── empty45at1.hex │ │ │ ├── empty45at8.hex │ │ │ ├── empty84at1.hex │ │ │ ├── empty84at16.hex │ │ │ ├── empty84at8.hex │ │ │ ├── empty85at1.hex │ │ │ ├── empty85at16.hex │ │ │ └── empty85at8.hex │ ├── cores │ │ ├── empty │ │ │ ├── Arduino.h │ │ │ ├── WProgram.h │ │ │ └── main.cpp │ │ └── tiny │ │ │ ├── Arduino.h │ │ │ ├── HardwareSerial.cpp │ │ │ ├── HardwareSerial.h │ │ │ ├── Print.cpp │ │ │ ├── Print.h │ │ │ ├── PwmTimer.h │ │ │ ├── Stream.h │ │ │ ├── TinyDebugSerial.cpp │ │ │ ├── TinyDebugSerial.h │ │ │ ├── TinyDebugSerial115200.cpp │ │ │ ├── TinyDebugSerial38400.cpp │ │ │ ├── TinyDebugSerial9600.cpp │ │ │ ├── TinyDebugSerialErrors.cpp │ │ │ ├── Tone.cpp │ │ │ ├── ToneTimer.h │ │ │ ├── UserTimer.h │ │ │ ├── WCharacter.h │ │ │ ├── WConstants.h │ │ │ ├── WInterrupts.c │ │ │ ├── WMath.cpp │ │ │ ├── WProgram.h │ │ │ ├── WString.cpp │ │ │ ├── WString.h │ │ │ ├── binary.h │ │ │ ├── core_adc.h │ │ │ ├── core_build_options.h │ │ │ ├── core_macros.h │ │ │ ├── core_pins.h │ │ │ ├── core_timers.h │ │ │ ├── main.cpp │ │ │ ├── pins_arduino.c │ │ │ ├── pins_arduino.h │ │ │ ├── wiring.c │ │ │ ├── wiring.h │ │ │ ├── wiring_analog.c │ │ │ ├── wiring_digital.c │ │ │ ├── wiring_private.h │ │ │ ├── wiring_pulse.c │ │ │ └── wiring_shift.c │ ├── license.txt │ └── readme.txt └── tools │ └── avr │ └── avr │ └── include │ └── avr │ └── eeprom.h ├── helloprinter └── helloprinter.ino ├── helloprintertest └── helloprintertest.ino ├── hovervlc └── hovervlc.ino ├── libraries ├── Adafruit_BMP085 │ ├── Adafruit_BMP085.cpp │ └── Adafruit_BMP085.h ├── Adafruit_Motor_Shield_V2_Library │ ├── Adafruit_MotorShield.cpp │ ├── Adafruit_MotorShield.h │ ├── README.md │ ├── examples │ │ ├── Accel_ConstantSpeed │ │ │ └── Accel_ConstantSpeed.ino │ │ ├── Accel_MultiStepper │ │ │ └── Accel_MultiStepper.ino │ │ ├── DCMotorTest │ │ │ └── DCMotorTest.ino │ │ ├── MotorParty │ │ │ └── MotorParty.ino │ │ ├── StackingTest │ │ │ └── StackingTest.ino │ │ └── StepperTest │ │ │ └── StepperTest.ino │ ├── keywords.txt │ ├── library.properties │ ├── license.txt │ └── utility │ │ ├── Adafruit_MS_PWMServoDriver.cpp │ │ ├── Adafruit_MS_PWMServoDriver.h │ │ └── license.txt ├── Adafruit_NFCShield_I2C │ ├── Adafruit_NFCShield_I2C.cpp │ ├── Adafruit_NFCShield_I2C.h │ ├── README.txt │ ├── examples │ │ ├── apduToBlackBerry │ │ │ ├── BlackBerry7 │ │ │ │ ├── .classpath │ │ │ │ ├── .project │ │ │ │ ├── .settings │ │ │ │ │ └── org.eclipse.jdt.core.prefs │ │ │ │ ├── BlackBerry_App_Descriptor.xml │ │ │ │ ├── build.xml │ │ │ │ ├── res │ │ │ │ │ └── img │ │ │ │ │ │ └── icon.png │ │ │ │ └── src │ │ │ │ │ └── mypackage │ │ │ │ │ ├── ColorMixer.java │ │ │ │ │ ├── MyApp.java │ │ │ │ │ └── MyScreen.java │ │ │ └── apduToBlackBerry.pde │ │ ├── iso14443a_uid │ │ │ └── iso14443a_uid.pde │ │ ├── mifareclassic_formatndef │ │ │ └── mifareclassic_formatndef.pde │ │ ├── mifareclassic_memdump │ │ │ └── mifareclassic_memdump.pde │ │ ├── mifareclassic_ndeftoclassic │ │ │ └── mifareclassic_ndeftoclassic.pde │ │ ├── mifareclassic_updatendef │ │ │ └── mifareclassic_updatendef.pde │ │ └── readMifare │ │ │ └── readMifare.pde │ └── license.txt ├── Adafruit_NeoPixel │ ├── .travis.yml │ ├── Adafruit_NeoPixel.cpp │ ├── Adafruit_NeoPixel.h │ ├── COPYING │ ├── README.md │ ├── esp8266.c │ ├── examples │ │ ├── buttoncycler │ │ │ ├── .esp8266.test.skip │ │ │ └── buttoncycler.ino │ │ ├── simple │ │ │ ├── .esp8266.test.skip │ │ │ └── simple.ino │ │ └── strandtest │ │ │ ├── .esp8266.test.skip │ │ │ └── strandtest.ino │ ├── keywords.txt │ └── library.properties ├── Adafruit_Thermal │ ├── Adafruit_Thermal.cpp │ ├── Adafruit_Thermal.h │ ├── ReadMe.txt │ ├── examples │ │ └── printertest │ │ │ ├── adalogo.h │ │ │ ├── adaqrcode.h │ │ │ └── printertest.pde │ ├── keywords.txt │ ├── processing │ │ └── bitmapImageConvert │ │ │ └── bitmapImageConvert.pde │ └── ruby │ │ ├── Gemfile │ │ ├── Gemfile.lock │ │ ├── License.txt │ │ ├── ascii_to_bytes │ │ ├── image_to_bytes │ │ ├── image_to_file │ │ └── sample_ascii.txt ├── Bounce │ ├── .DS_Store │ ├── Bounce.cpp │ ├── Bounce.h │ ├── documentation.txt │ ├── examples │ │ ├── bounce │ │ │ └── bounce.pde │ │ ├── change │ │ │ └── change.pde │ │ ├── duration │ │ │ └── duration.pde │ │ ├── edge │ │ │ └── edge.pde │ │ └── rebounce │ │ │ └── rebounce.pde │ └── keywords.txt ├── DHT │ ├── dht.cpp │ └── dht.h ├── DHT22 │ ├── DHT22.cpp │ ├── DHT22.h │ └── keywords.txt ├── Ethernet │ ├── README.adoc │ ├── examples │ │ ├── AdvancedChatServer │ │ │ └── AdvancedChatServer.ino │ │ ├── BarometricPressureWebServer │ │ │ └── BarometricPressureWebServer.ino │ │ ├── ChatServer │ │ │ └── ChatServer.ino │ │ ├── DhcpAddressPrinter │ │ │ └── DhcpAddressPrinter.ino │ │ ├── DhcpChatServer │ │ │ └── DhcpChatServer.ino │ │ ├── TelnetClient │ │ │ └── TelnetClient.ino │ │ ├── UDPSendReceiveString │ │ │ └── UDPSendReceiveString.ino │ │ ├── UdpNtpClient │ │ │ └── UdpNtpClient.ino │ │ ├── WebClient │ │ │ └── WebClient.ino │ │ ├── WebClientRepeating │ │ │ └── WebClientRepeating.ino │ │ └── WebServer │ │ │ └── WebServer.ino │ ├── keywords.txt │ ├── library.properties │ └── src │ │ ├── Dhcp.cpp │ │ ├── Dhcp.h │ │ ├── Dns.cpp │ │ ├── Dns.h │ │ ├── Ethernet.cpp │ │ ├── Ethernet.h │ │ ├── EthernetClient.cpp │ │ ├── EthernetClient.h │ │ ├── EthernetServer.cpp │ │ ├── EthernetServer.h │ │ ├── EthernetUdp.cpp │ │ ├── EthernetUdp.h │ │ └── utility │ │ ├── socket.cpp │ │ ├── socket.h │ │ ├── util.h │ │ ├── w5100.cpp │ │ └── w5100.h ├── Gamebuino │ ├── Gamebuino.cpp │ ├── Gamebuino.h │ ├── changelog.md │ ├── examples │ │ ├── 1.Basics │ │ │ ├── a_Hello │ │ │ │ └── a_Hello.ino │ │ │ ├── b_Bouncing │ │ │ │ └── b_Bouncing.ino │ │ │ └── c_Controls │ │ │ │ └── c_Controls.ino │ │ ├── 2.Intermediate │ │ │ ├── CirclesPhysics │ │ │ │ ├── CirclesPhysics.ino │ │ │ │ └── circles.ino │ │ │ ├── Conway │ │ │ │ └── Conway.ino │ │ │ ├── Music │ │ │ │ └── Music.ino │ │ │ ├── Physics │ │ │ │ ├── Physics.ino │ │ │ │ ├── obstacles.ino │ │ │ │ └── player.ino │ │ │ ├── Pong │ │ │ │ └── Pong.ino │ │ │ └── TileMapRAM │ │ │ │ ├── TileMapRAM.ino │ │ │ │ ├── grass.bmp │ │ │ │ ├── road_straight.bmp │ │ │ │ ├── road_turn.bmp │ │ │ │ ├── rocks.bmp │ │ │ │ └── tileset.bmp │ │ ├── 3.Advanced │ │ │ └── PongMulti │ │ │ │ ├── PongMulti.ino │ │ │ │ ├── master.ino │ │ │ │ ├── slave.ino │ │ │ │ ├── updateDisplay.ino │ │ │ │ └── updateGame.ino │ │ ├── 4.Utilities │ │ │ ├── Battery_logger │ │ │ │ └── Battery_logger.ino │ │ │ ├── Loader │ │ │ │ ├── Loader.ino │ │ │ │ ├── bitmaps │ │ │ │ │ ├── floppy8x8.png │ │ │ │ │ ├── settings_logo.bmp │ │ │ │ │ └── settings_slide0.bmp │ │ │ │ ├── displayGameScreen.ino │ │ │ │ ├── list.ino │ │ │ │ ├── loadeeprom.ino │ │ │ │ └── saveeeprom.ino │ │ │ ├── Logo │ │ │ │ └── Logo.ino │ │ │ ├── Settings │ │ │ │ ├── Settings.ino │ │ │ │ ├── Wizard.ino │ │ │ │ ├── changeSettings.ino │ │ │ │ ├── logo.ino │ │ │ │ ├── restoreSettings.ino │ │ │ │ └── seeAllSettings.ino │ │ │ └── eraseSettings │ │ │ │ └── eraseSettings.ino │ │ └── 5.Reference │ │ │ ├── buttons │ │ │ ├── buttons │ │ │ │ └── buttons.ino │ │ │ └── timeHeld │ │ │ │ └── timeHeld.ino │ │ │ ├── core │ │ │ ├── begin │ │ │ │ └── begin.ino │ │ │ ├── frameCount │ │ │ │ └── frameCount.ino │ │ │ ├── getDefaultName │ │ │ │ └── getDefaultName.ino │ │ │ └── update │ │ │ │ └── update.ino │ │ │ ├── display │ │ │ ├── bitmap │ │ │ │ ├── bitmap.ino │ │ │ │ └── pointerBitmap.png │ │ │ ├── color │ │ │ │ └── color.ino │ │ │ ├── displayBuffer │ │ │ │ └── displayBuffer.ino │ │ │ └── setFont │ │ │ │ └── setFont.ino │ │ │ ├── interface │ │ │ ├── keyboard │ │ │ │ └── keyboard.ino │ │ │ ├── menu │ │ │ │ └── menu.ino │ │ │ └── popup │ │ │ │ └── popup.ino │ │ │ └── physics │ │ │ ├── collideBitmapBitmap │ │ │ └── collideBitmapBitmap.ino │ │ │ ├── collidePointRect │ │ │ └── collidePointRect.ino │ │ │ └── collideRectRect │ │ │ └── collideRectRect.ino │ ├── keywords.txt │ ├── lgpl-3.0.txt │ ├── library.json │ ├── library.properties │ ├── readme.md │ └── utility │ │ ├── Backlight.cpp │ │ ├── Backlight.h │ │ ├── Battery.cpp │ │ ├── Battery.h │ │ ├── Buttons.cpp │ │ ├── Buttons.h │ │ ├── Display.cpp │ │ ├── Display.h │ │ ├── Sound.cpp │ │ ├── Sound.h │ │ ├── font3x3.c │ │ ├── font3x5.c │ │ ├── font5x7.c │ │ └── settings.c ├── Hover │ ├── Hover.cpp │ ├── Hover.h │ ├── examples │ │ ├── HoverDemo │ │ │ └── HoverDemo.ino │ │ └── Hover_GoogleEarth_example │ │ │ └── Hover_GoogleEarth_example.ino │ └── keywords.txt ├── I2cMaster │ ├── I2cMaster.cpp │ ├── I2cMaster.h │ ├── TwiMap.h │ └── examples │ │ ├── i2cScanAddress │ │ └── i2cScanAddress.pde │ │ ├── i2cScopeTest │ │ └── i2cScopeTest.pde │ │ └── softDS1307 │ │ └── softDS1307.pde ├── LPD8806 │ ├── LPD8806.cpp │ ├── LPD8806.h │ ├── README.md │ ├── examples │ │ ├── LEDbeltKit │ │ │ └── LEDbeltKit.pde │ │ ├── LEDbeltKit_alt │ │ │ └── LEDbeltKit_alt.pde │ │ ├── longstrandtest │ │ │ └── longstrandtest.pde │ │ └── strandtest │ │ │ └── strandtest.ino │ └── library.properties ├── LedControl │ ├── LICENSE │ ├── README.md │ ├── examples │ │ ├── LCDemo7Segment │ │ │ └── LCDemo7Segment.ino │ │ ├── LCDemoCascadedDevices │ │ │ └── LCDemoCascadedDevices.ino │ │ └── LCDemoMatrix │ │ │ └── LCDemoMatrix.ino │ ├── keywords.txt │ ├── library.properties │ └── src │ │ ├── LedControl.cpp │ │ └── LedControl.h ├── OneWire │ ├── OneWire.cpp │ ├── OneWire.h │ ├── examples │ │ ├── DS18x20_Temperature │ │ │ └── DS18x20_Temperature.pde │ │ ├── DS2408_Switch │ │ │ └── DS2408_Switch.pde │ │ └── DS250x_PROM │ │ │ └── DS250x_PROM.pde │ ├── keywords.txt │ ├── library.json │ └── library.properties ├── PiccoloLib │ ├── .DS_Store │ ├── LICENSE.txt │ ├── PiccoloLib.cpp │ ├── PiccoloLib.h │ ├── README.md │ └── examples │ │ ├── .DS_Store │ │ ├── spiral │ │ └── spiral.ino │ │ └── usbTether │ │ └── usbTether.ino ├── RF24 │ ├── Doxyfile │ ├── Makefile │ ├── Makefile.littlewire │ ├── README.md │ ├── RF24.cpp │ ├── RF24.h │ ├── RF24_config.h │ ├── RPi │ │ ├── pyRF24 │ │ │ ├── pyRF24.cpp │ │ │ ├── readme.md │ │ │ └── setup.py │ │ └── readme.md │ ├── doxygen-custom.css │ ├── examples │ │ ├── GettingStarted │ │ │ └── GettingStarted.ino │ │ ├── GettingStarted_CallResponse │ │ │ └── GettingStarted_CallResponse.ino │ │ ├── GettingStarted_HandlingData │ │ │ └── GettingStarted_HandlingData.ino │ │ ├── Transfer │ │ │ └── Transfer.ino │ │ ├── TransferTimeouts │ │ │ └── TransferTimeouts.ino │ │ ├── Usage │ │ │ ├── led_remote │ │ │ │ ├── Jamfile │ │ │ │ └── led_remote.pde │ │ │ ├── nordic_fob │ │ │ │ ├── Jamfile │ │ │ │ └── nordic_fob.pde │ │ │ ├── pingpair_maple │ │ │ │ ├── Jamfile │ │ │ │ ├── main.cpp │ │ │ │ └── pingpair_maple.pde │ │ │ └── readme.md │ │ ├── pingpair_ack │ │ │ └── pingpair_ack.ino │ │ ├── pingpair_dyn │ │ │ ├── Jamfile │ │ │ └── pingpair_dyn.ino │ │ ├── pingpair_irq │ │ │ └── pingpair_irq.ino │ │ ├── pingpair_irq_simple │ │ │ └── pingpair_irq_simple.ino │ │ ├── pingpair_multi_dyn │ │ │ ├── Jamfile │ │ │ └── pingpair_multi_dyn.ino │ │ ├── pingpair_sleepy │ │ │ └── pingpair_sleepy.ino │ │ ├── rf24_ATTiny │ │ │ ├── rf24ping85 │ │ │ │ └── rf24ping85.ino │ │ │ └── timingSearch3pin │ │ │ │ └── timingSearch3pin.ino │ │ ├── scanner │ │ │ ├── Jamfile │ │ │ ├── output │ │ │ │ ├── core.a │ │ │ │ ├── scanner.cpp │ │ │ │ ├── scanner.elf │ │ │ │ └── scanner.hex │ │ │ └── scanner.ino │ │ └── starping │ │ │ ├── Jamfile │ │ │ └── starping.pde │ ├── examples_RPi │ │ ├── Makefile │ │ ├── extra │ │ │ ├── Makefile │ │ │ ├── rpi-hub.cpp │ │ │ └── scanner.cpp │ │ ├── gettingstarted.cpp │ │ ├── gettingstarted_call_response.cpp │ │ ├── interrupts │ │ │ ├── Makefile │ │ │ ├── gettingstarted_call_response_int.cpp │ │ │ ├── gettingstarted_call_response_int2.cpp │ │ │ ├── pingpair_dyn_int.cpp │ │ │ └── transfer_interrupt.cpp │ │ ├── pingpair_dyn.cpp │ │ ├── pingpair_dyn.py │ │ ├── readme.md │ │ └── transfer.cpp │ ├── keywords.txt │ ├── library.json │ ├── library.properties │ ├── nRF24L01.h │ ├── printf.h │ ├── tests │ │ ├── README │ │ ├── native │ │ │ ├── Jamfile │ │ │ ├── pingpair_irq.pde │ │ │ └── printf.h │ │ ├── pingpair_blocking │ │ │ ├── Jamfile │ │ │ ├── pingpair_blocking.pde │ │ │ ├── printf.h │ │ │ ├── runtest.py │ │ │ ├── runtests.sh │ │ │ └── test.ex │ │ └── pingpair_test │ │ │ ├── Jamfile │ │ │ ├── pingpair_test.pde │ │ │ ├── printf.h │ │ │ ├── runtest.py │ │ │ ├── runtests.sh │ │ │ └── test.ex │ ├── utility │ │ ├── ATTiny │ │ │ ├── RF24_arch_config.h │ │ │ └── spi.h │ │ ├── BBB │ │ │ ├── RF24_arch_config.h │ │ │ ├── compatibility.c │ │ │ ├── compatibility.h │ │ │ ├── gpio.cpp │ │ │ ├── gpio.h │ │ │ ├── includes.h │ │ │ ├── spi.cpp │ │ │ └── spi.h │ │ ├── Due │ │ │ └── RF24_arch_config.h │ │ ├── LittleWire │ │ │ └── RF24_arch_config.h │ │ ├── MRAA │ │ │ ├── RF24_arch_config.h │ │ │ ├── compatibility.c │ │ │ ├── compatibility.h │ │ │ ├── gpio.cpp │ │ │ ├── gpio.h │ │ │ ├── includes.h │ │ │ ├── spi.cpp │ │ │ └── spi.h │ │ ├── RPi │ │ │ ├── RF24_arch_config.h │ │ │ ├── bcm2835.c │ │ │ ├── bcm2835.h │ │ │ ├── includes.h │ │ │ ├── interrupt.c │ │ │ ├── interrupt.h │ │ │ ├── spi.cpp │ │ │ └── spi.h │ │ ├── Teensy │ │ │ └── RF24_arch_config.h │ │ └── Template │ │ │ ├── RF24_arch_config.h │ │ │ ├── compatibility.h │ │ │ ├── gpio.h │ │ │ ├── includes.h │ │ │ └── spi.h │ └── wikidoc.xslt ├── RTCZero │ ├── README.adoc │ ├── examples │ │ ├── Epoch │ │ │ └── Epoch.ino │ │ ├── SimpleRTC │ │ │ └── SimpleRTC.ino │ │ ├── SimpleRTCAlarm │ │ │ └── SimpleRTCAlarm.ino │ │ └── SleepRTCAlarm │ │ │ └── SleepRTCAlarm.ino │ ├── keywords.txt │ ├── library.properties │ └── src │ │ ├── RTCZero.cpp │ │ └── RTCZero.h ├── RTClib │ ├── README.md │ ├── RTClib.cpp │ ├── RTClib.h │ ├── examples │ │ ├── datecalc │ │ │ └── datecalc.ino │ │ ├── ds1307 │ │ │ └── ds1307.ino │ │ ├── ds1307SqwPin │ │ │ └── ds1307SqwPin.ino │ │ ├── ds1307nvram │ │ │ └── ds1307nvram.ino │ │ ├── ds3231 │ │ │ └── ds3231.ino │ │ ├── pcf8523 │ │ │ └── pcf8523.ino │ │ └── softrtc │ │ │ └── softrtc.ino │ ├── keywords.txt │ └── library.properties ├── Servo │ ├── README.adoc │ ├── examples │ │ ├── Knob │ │ │ └── Knob.ino │ │ └── Sweep │ │ │ └── Sweep.ino │ ├── keywords.txt │ ├── library.properties │ └── src │ │ ├── Servo.h │ │ ├── avr │ │ ├── Servo.cpp │ │ └── ServoTimers.h │ │ ├── sam │ │ ├── Servo.cpp │ │ └── ServoTimers.h │ │ └── samd │ │ ├── Servo.cpp │ │ └── ServoTimers.h ├── SoftwareSerial │ ├── SoftwareSerial.h │ └── SoftwareSerial_Class.h ├── TM1638 │ ├── Adafruit_BMP085 │ │ ├── Adafruit_BMP085.cpp │ │ └── Adafruit_BMP085.h │ ├── Adafruit_NFCShield_I2C │ │ ├── Adafruit_NFCShield_I2C.cpp │ │ ├── Adafruit_NFCShield_I2C.h │ │ ├── README.txt │ │ ├── examples │ │ │ ├── apduToBlackBerry │ │ │ │ ├── BlackBerry7 │ │ │ │ │ ├── .classpath │ │ │ │ │ ├── .project │ │ │ │ │ ├── .settings │ │ │ │ │ │ └── org.eclipse.jdt.core.prefs │ │ │ │ │ ├── BlackBerry_App_Descriptor.xml │ │ │ │ │ ├── build.xml │ │ │ │ │ ├── res │ │ │ │ │ │ └── img │ │ │ │ │ │ │ └── icon.png │ │ │ │ │ └── src │ │ │ │ │ │ └── mypackage │ │ │ │ │ │ ├── ColorMixer.java │ │ │ │ │ │ ├── MyApp.java │ │ │ │ │ │ └── MyScreen.java │ │ │ │ └── apduToBlackBerry.pde │ │ │ ├── iso14443a_uid │ │ │ │ └── iso14443a_uid.pde │ │ │ ├── mifareclassic_formatndef │ │ │ │ └── mifareclassic_formatndef.pde │ │ │ ├── mifareclassic_memdump │ │ │ │ └── mifareclassic_memdump.pde │ │ │ ├── mifareclassic_ndeftoclassic │ │ │ │ └── mifareclassic_ndeftoclassic.pde │ │ │ ├── mifareclassic_updatendef │ │ │ │ └── mifareclassic_updatendef.pde │ │ │ └── readMifare │ │ │ │ └── readMifare.pde │ │ └── license.txt │ ├── Adafruit_Thermal │ │ ├── Adafruit_Thermal.cpp │ │ ├── Adafruit_Thermal.h │ │ ├── ReadMe.txt │ │ ├── examples │ │ │ └── printertest │ │ │ │ ├── adalogo.h │ │ │ │ ├── adaqrcode.h │ │ │ │ └── printertest.pde │ │ ├── keywords.txt │ │ ├── processing │ │ │ └── bitmapImageConvert │ │ │ │ └── bitmapImageConvert.pde │ │ └── ruby │ │ │ ├── Gemfile │ │ │ ├── Gemfile.lock │ │ │ ├── License.txt │ │ │ ├── ascii_to_bytes │ │ │ ├── image_to_bytes │ │ │ ├── image_to_file │ │ │ └── sample_ascii.txt │ ├── Bounce │ │ ├── .DS_Store │ │ ├── Bounce.cpp │ │ ├── Bounce.h │ │ ├── documentation.txt │ │ ├── examples │ │ │ ├── bounce │ │ │ │ └── bounce.pde │ │ │ ├── change │ │ │ │ └── change.pde │ │ │ ├── duration │ │ │ │ └── duration.pde │ │ │ ├── edge │ │ │ │ └── edge.pde │ │ │ └── rebounce │ │ │ │ └── rebounce.pde │ │ └── keywords.txt │ ├── CHANGES.txt │ ├── DHT │ │ ├── dht.cpp │ │ └── dht.h │ ├── DHT22 │ │ ├── DHT22.cpp │ │ ├── DHT22.h │ │ └── keywords.txt │ ├── Gamebuino │ │ ├── Backlight.cpp │ │ ├── Backlight.h │ │ ├── Battery.cpp │ │ ├── Battery.h │ │ ├── Buttons.cpp │ │ ├── Buttons.h │ │ ├── Display.cpp │ │ ├── Display.h │ │ ├── Gamebuino.cpp │ │ ├── Gamebuino.h │ │ ├── Sound.cpp │ │ ├── Sound.h │ │ ├── examples │ │ │ ├── 1.Basics │ │ │ │ ├── a_Hello │ │ │ │ │ └── a_Hello.ino │ │ │ │ ├── b_Bouncing │ │ │ │ │ └── b_Bouncing.ino │ │ │ │ └── c_Controls │ │ │ │ │ └── c_Controls.ino │ │ │ ├── 2.Intermediate │ │ │ │ ├── Conway │ │ │ │ │ └── Conway.ino │ │ │ │ ├── Music │ │ │ │ │ └── d_music.ino │ │ │ │ └── Pong │ │ │ │ │ └── Pong.ino │ │ │ ├── 3.Advanced │ │ │ │ ├── Crabator │ │ │ │ │ ├── Crabator.ino │ │ │ │ │ ├── bullets.ino │ │ │ │ │ ├── crate.ino │ │ │ │ │ ├── mobs.ino │ │ │ │ │ ├── pause_menu.ino │ │ │ │ │ ├── play.ino │ │ │ │ │ ├── sprites.ino │ │ │ │ │ └── world.ino │ │ │ │ └── PongMulti │ │ │ │ │ ├── PongMulti.ino │ │ │ │ │ ├── master.ino │ │ │ │ │ ├── slave.ino │ │ │ │ │ ├── updateDisplay.ino │ │ │ │ │ └── updateGame.ino │ │ │ ├── 4.Utilities │ │ │ │ ├── Battery_logger │ │ │ │ │ └── Battery_logger.ino │ │ │ │ ├── Loader │ │ │ │ │ ├── Loader.ino │ │ │ │ │ ├── list.ino │ │ │ │ │ ├── loadeeprom.ino │ │ │ │ │ ├── logo.ino │ │ │ │ │ └── saveeeprom.ino │ │ │ │ └── Settings │ │ │ │ │ ├── Settings.ino │ │ │ │ │ ├── changeSettings.ino │ │ │ │ │ ├── logo.ino │ │ │ │ │ ├── restoreSettings.ino │ │ │ │ │ └── seeAllSettings.ino │ │ │ ├── 5.Reference │ │ │ │ ├── buttons │ │ │ │ │ ├── buttons │ │ │ │ │ │ └── buttons.ino │ │ │ │ │ └── timeHeld │ │ │ │ │ │ └── timeHeld.ino │ │ │ │ ├── core │ │ │ │ │ ├── begin │ │ │ │ │ │ └── begin.ino │ │ │ │ │ ├── frameCount │ │ │ │ │ │ └── frameCount.ino │ │ │ │ │ ├── getDefaultName │ │ │ │ │ │ └── getDefaultName.ino │ │ │ │ │ ├── keyboard │ │ │ │ │ │ └── keyboard.ino │ │ │ │ │ ├── menu │ │ │ │ │ │ └── menu.ino │ │ │ │ │ ├── popup │ │ │ │ │ │ └── popup.ino │ │ │ │ │ └── update │ │ │ │ │ │ └── update.ino │ │ │ │ └── display │ │ │ │ │ └── setFont │ │ │ │ │ └── setFont.ino │ │ │ └── 6.Community │ │ │ │ ├── _3d_demo │ │ │ │ └── _3d_demo.ino │ │ │ │ ├── asteroid │ │ │ │ └── asteroid.ino │ │ │ │ ├── breakout │ │ │ │ └── breakout.ino │ │ │ │ ├── snake │ │ │ │ └── snake.ino │ │ │ │ └── sokobuino │ │ │ │ ├── sokobuino.hex │ │ │ │ └── sokobuino.ino │ │ ├── font3x3.c │ │ ├── font3x5.c │ │ ├── font5x7.c │ │ ├── keywords.txt │ │ └── settings.c │ ├── I2cMaster │ │ ├── I2cMaster.cpp │ │ ├── I2cMaster.h │ │ ├── TwiMap.h │ │ └── examples │ │ │ ├── i2cScanAddress │ │ │ └── i2cScanAddress.pde │ │ │ ├── i2cScopeTest │ │ │ └── i2cScopeTest.pde │ │ │ └── softDS1307 │ │ │ └── softDS1307.pde │ ├── InvertedTM1638.cpp │ ├── InvertedTM1638.h │ ├── README.txt │ ├── RTClib │ │ ├── RTClib.cpp │ │ ├── RTClib.h │ │ ├── examples │ │ │ ├── datecalc │ │ │ │ └── datecalc.pde │ │ │ ├── ds1307 │ │ │ │ └── ds1307.pde │ │ │ └── softrtc │ │ │ │ └── softrtc.pde │ │ └── keywords.txt │ ├── TM1638.cpp │ ├── TM1638.h │ ├── TM1640.cpp │ ├── TM1640.h │ ├── TM16XX.cpp │ ├── TM16XX.h │ ├── TM16XXFonts.h │ ├── examples │ │ ├── tm1638_functions_example │ │ │ └── tm1638_functions_example.pde │ │ ├── tm1638_one_module_example │ │ │ └── tm1638_one_module_example.pde │ │ ├── tm1638_scrolling_modules_example │ │ │ └── tm1638_scrolling_modules_example.pde │ │ ├── tm1638_two_modules_example │ │ │ └── tm1638_two_modules_example.pde │ │ └── tm1640_example │ │ │ └── tm1640_example.pde │ ├── keywords.txt │ ├── petit_fatfs │ │ ├── diskio.h │ │ ├── examples │ │ │ └── demo │ │ │ │ └── demo.ino │ │ ├── integer.h │ │ ├── keywords.txt │ │ ├── mmc.c │ │ ├── petit_fatfs.cpp │ │ ├── petit_fatfs.h │ │ ├── pff.c │ │ └── pff.h │ └── tinyFAT │ │ ├── Examples │ │ ├── All_In_One_Demo │ │ │ ├── All_In_One_Demo.ino │ │ │ ├── strings.ino │ │ │ └── utils.ino │ │ ├── Demo_readBinary │ │ │ └── Demo_readBinary.pde │ │ ├── Demo_readLn │ │ │ └── Demo_readLn.pde │ │ ├── Demo_writeLn │ │ │ └── Demo_writeLn.pde │ │ └── SpeedCheck_writeLn │ │ │ └── SpeedCheck_writeLn.pde │ │ ├── HW_AVR.h │ │ ├── HW_AVR_defines.h │ │ ├── LICENSE.txt │ │ ├── SD_defines.h │ │ ├── keywords.txt │ │ ├── mmc.cpp │ │ ├── mmc.h │ │ ├── tinyFAT.cpp │ │ ├── tinyFAT.h │ │ ├── tinyFAT.pdf │ │ └── version.txt ├── USBHost │ ├── README.adoc │ ├── examples │ │ ├── ADKTerminalTest │ │ │ └── ADKTerminalTest.ino │ │ ├── KeyboardController │ │ │ └── KeyboardController.ino │ │ └── MouseController │ │ │ └── MouseController.ino │ ├── keywords.txt │ ├── library.properties │ └── src │ │ ├── KeyboardController.cpp │ │ ├── KeyboardController.h │ │ ├── MouseController.cpp │ │ ├── MouseController.h │ │ ├── Usb.cpp │ │ ├── Usb.h │ │ ├── address.h │ │ ├── adk.cpp │ │ ├── adk.h │ │ ├── confdescparser.h │ │ ├── hid.h │ │ ├── hid2.cpp │ │ ├── hidboot.cpp │ │ ├── hidboot.h │ │ ├── hidusagestr.h │ │ ├── parsetools.cpp │ │ ├── parsetools.h │ │ └── usb_ch9.h ├── WiFi101 │ ├── CHANGELOG │ ├── README.adoc │ ├── examples │ │ ├── AP_SimpleWebServer │ │ │ └── AP_SimpleWebServer.ino │ │ ├── CheckWifi101FirmwareVersion │ │ │ └── CheckWifi101FirmwareVersion.ino │ │ ├── ConnectNoEncryption │ │ │ └── ConnectNoEncryption.ino │ │ ├── ConnectWithWEP │ │ │ └── ConnectWithWEP.ino │ │ ├── ConnectWithWPA │ │ │ └── ConnectWithWPA.ino │ │ ├── FirmwareUpdater │ │ │ ├── Endianess.ino │ │ │ └── FirmwareUpdater.ino │ │ ├── MDNS_WiFiWebServer │ │ │ └── MDNS_WiFiWebServer.ino │ │ ├── ScanNetworks │ │ │ └── ScanNetworks.ino │ │ ├── SimpleWebServerWiFi │ │ │ └── SimpleWebServerWiFi.ino │ │ ├── WiFiChatServer │ │ │ └── WiFiChatServer.ino │ │ ├── WiFiSSLClient │ │ │ └── WiFiSSLClient.ino │ │ ├── WiFiUdpNtpClient │ │ │ └── WiFiUdpNtpClient.ino │ │ ├── WiFiUdpSendReceiveString │ │ │ └── WiFiUdpSendReceiveString.ino │ │ ├── WiFiWebClient │ │ │ └── WiFiWebClient.ino │ │ ├── WiFiWebClientRepeating │ │ │ └── WiFiWebClientRepeating.ino │ │ └── WiFiWebServer │ │ │ └── WiFiWebServer.ino │ ├── keywords.txt │ ├── library.properties │ └── src │ │ ├── WiFi.cpp │ │ ├── WiFi101.h │ │ ├── WiFiClient.cpp │ │ ├── WiFiClient.h │ │ ├── WiFiMdnsResponder.cpp │ │ ├── WiFiMdnsResponder.h │ │ ├── WiFiSSLClient.cpp │ │ ├── WiFiSSLClient.h │ │ ├── WiFiServer.cpp │ │ ├── WiFiServer.h │ │ ├── WiFiUdp.cpp │ │ ├── WiFiUdp.h │ │ ├── bsp │ │ ├── include │ │ │ ├── nm_bsp.h │ │ │ ├── nm_bsp_avr.h │ │ │ ├── nm_bsp_internal.h │ │ │ └── nm_bsp_samd21.h │ │ └── source │ │ │ ├── nm_bsp_arduino.c │ │ │ └── nm_bsp_arduino_avr.c │ │ ├── bus_wrapper │ │ ├── include │ │ │ └── nm_bus_wrapper.h │ │ └── source │ │ │ └── nm_bus_wrapper_samd21.cpp │ │ ├── common │ │ ├── include │ │ │ ├── nm_common.h │ │ │ └── nm_debug.h │ │ └── source │ │ │ └── nm_common.c │ │ ├── driver │ │ ├── include │ │ │ ├── m2m_ota.h │ │ │ ├── m2m_periph.h │ │ │ ├── m2m_types.h │ │ │ └── m2m_wifi.h │ │ └── source │ │ │ ├── m2m_hif.c │ │ │ ├── m2m_hif.h │ │ │ ├── m2m_ota.c │ │ │ ├── m2m_periph.c │ │ │ ├── m2m_wifi.c │ │ │ ├── nmasic.c │ │ │ ├── nmasic.h │ │ │ ├── nmbus.c │ │ │ ├── nmbus.h │ │ │ ├── nmdrv.c │ │ │ ├── nmdrv.h │ │ │ ├── nmi2c.c │ │ │ ├── nmi2c.h │ │ │ ├── nmspi.c │ │ │ ├── nmspi.h │ │ │ ├── nmuart.c │ │ │ └── nmuart.h │ │ ├── socket │ │ ├── include │ │ │ ├── m2m_socket_host_if.h │ │ │ ├── socket.h │ │ │ └── socket_buffer.h │ │ └── source │ │ │ ├── socket.c │ │ │ ├── socket_buffer.c │ │ │ └── socket_internal.h │ │ └── spi_flash │ │ ├── include │ │ ├── spi_flash.h │ │ └── spi_flash_map.h │ │ └── source │ │ └── spi_flash.c ├── ad983x │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── ad983x.cpp │ └── ad983x.h ├── mcp4xxx │ ├── README.md │ ├── mcp4xxx.cpp │ └── mcp4xxx.h ├── petit_fatfs │ ├── diskio.h │ ├── examples │ │ └── demo │ │ │ └── demo.ino │ ├── integer.h │ ├── keywords.txt │ ├── mmc.c │ ├── petit_fatfs.cpp │ ├── petit_fatfs.h │ ├── pff.c │ └── pff.h ├── readme.txt ├── tinyFAT │ ├── Examples │ │ ├── All_In_One_Demo │ │ │ ├── All_In_One_Demo.ino │ │ │ ├── strings.ino │ │ │ └── utils.ino │ │ ├── Demo_readBinary │ │ │ └── Demo_readBinary.pde │ │ ├── Demo_readLn │ │ │ └── Demo_readLn.pde │ │ ├── Demo_writeLn │ │ │ └── Demo_writeLn.pde │ │ └── SpeedCheck_writeLn │ │ │ └── SpeedCheck_writeLn.pde │ ├── HW_AVR.h │ ├── HW_AVR_defines.h │ ├── LICENSE.txt │ ├── SD_defines.h │ ├── keywords.txt │ ├── mmc.cpp │ ├── mmc.h │ ├── tinyFAT.cpp │ ├── tinyFAT.h │ ├── tinyFAT.pdf │ └── version.txt └── tsunami │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── examples │ ├── FrequencyGenerator │ │ └── FrequencyGenerator.ino │ ├── SimpleFrequencyGenerator │ │ └── SimpleFrequencyGenerator.ino │ ├── SineOutput │ │ └── SineOutput.ino │ ├── TapeOutput │ │ └── TapeOutput.ino │ └── WaveformMeasurement │ │ └── WaveformMeasurement.ino │ ├── tsunami.cpp │ └── tsunami.h ├── macro_keyboard ├── macro_keyboard.ino ├── macrokeyboard.fzz ├── macrokeyboard.svg └── macrokeyboard_schem.svg ├── nfc_powerbutton └── nfc_powerbutton.ino ├── result-1.jpg ├── sketch_nov17a └── sketch_nov17a.ino ├── sleepduino └── sleepduino.pde ├── sleepduino_standalone └── sleepduino_standalone.ino ├── spark-ultrasonic-sensor └── spark-ultrasonic-sensor.ino ├── thermalprinter_expirements ├── adalogo.h ├── adaqrcode.h ├── custompclogo.h ├── me-amiga-small.h ├── meamiga.h ├── thermalprinter_expirements.ino └── twitterqr.h ├── unoRFID └── unoRFID.pde ├── weathermon ├── samplebackend.py ├── weathermon.fzz ├── weathermon.ino ├── weathermon_2.fzz ├── weathermon_bb.svg ├── weathermon_sb.svg └── weatherstationlibraries.zip └── weathermonextra └── weathermonextra.ino /Crabator/world.ino: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////// GET TILE 2 | boolean getTile(uint8_t i, uint8_t j){ 3 | if(pgm_read_byte(world + (j%WORLD_H)*byteWidth + (i%WORLD_W)/8) & (B10000000 >> (i % 8))) 4 | return true; 5 | else 6 | return false; 7 | } 8 | 9 | ///////////////////////////////////// DRAW WORLD 10 | void drawWorld(int16_t x, int16_t y){ 11 | int8_t i, j, 12 | w = WORLD_W, 13 | h = WORLD_H; 14 | x = wrap(x,w*8); 15 | y = wrap(y,h*8); 16 | for(j=y/8; j < (LCDHEIGHT/8 + y/8 + 1); j++) { 17 | for(i=x/8; i < (LCDWIDTH/8 + x/8 + 1); i++ ) { 18 | if(getTile(i, j)) { 19 | gb.display.drawBitmap(i*8 - x, j*8 - y, tiles); 20 | } 21 | } 22 | } 23 | } 24 | 25 | ///////////////////////////////////// COLLIDE WORLD 26 | boolean collideWorld(int16_t x, int16_t y, uint8_t w, uint8_t h){ 27 | if(getTile(x/8, y/8)) 28 | return true; 29 | if(getTile((x+w-1)/8, y/8)) 30 | return true; 31 | if(getTile((x+w-1)/8, (y+h-1)/8)) 32 | return true; 33 | if(getTile(x/8, (y+h-1)/8)) 34 | return true; 35 | return false; 36 | } 37 | -------------------------------------------------------------------------------- /FIRBUINO/FIRBUINO.INF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/FIRBUINO.INF -------------------------------------------------------------------------------- /FIRBUINO/img/Gameplay.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/Gameplay.gif -------------------------------------------------------------------------------- /FIRBUINO/img/MainMenuScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/MainMenuScreen.png -------------------------------------------------------------------------------- /FIRBUINO/img/MainMenuScreenx4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/MainMenuScreenx4.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/ambulanceBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/ambulanceBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/ambulanceLightBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/ambulanceLightBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/ambulanceShadowBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/ambulanceShadowBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/backgroundBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/backgroundBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/livesBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/livesBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/livesLightBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/livesLightBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/playerBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/playerBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/subBackgroundBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/subBackgroundBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/survivor0Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/survivor0Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/survivor1Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/survivor1Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/survivor2Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/survivor2Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/survivor3Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/survivor3Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/classic/survivor4Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/classic/survivor4Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/ambulanceBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/ambulanceBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/ambulanceLightBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/ambulanceLightBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/ambulanceShadowBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/ambulanceShadowBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/backgroundBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/backgroundBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/livesBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/livesBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/livesLightBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/livesLightBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/playerBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/playerBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/subBackgroundBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/subBackgroundBitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/survivor0Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/survivor0Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/survivor1Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/survivor1Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/survivor2Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/survivor2Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/survivor3Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/survivor3Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/enhanced/survivor4Bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/enhanced/survivor4Bitmap.png -------------------------------------------------------------------------------- /FIRBUINO/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/icon.png -------------------------------------------------------------------------------- /FIRBUINO/img/titleScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/FIRBUINO/img/titleScreen.png -------------------------------------------------------------------------------- /RC522.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/RC522.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/README.md -------------------------------------------------------------------------------- /RFID.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/RFID.pdf -------------------------------------------------------------------------------- /S50.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/S50.pdf -------------------------------------------------------------------------------- /Snake/Emulator.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/Snake/Emulator.exe -------------------------------------------------------------------------------- /Snake/Snake.cpp.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/Snake/Snake.cpp.elf -------------------------------------------------------------------------------- /Snake/game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/Snake/game.png -------------------------------------------------------------------------------- /Snake/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/Snake/logo.png -------------------------------------------------------------------------------- /cpc_nfc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/cpc_nfc.zip -------------------------------------------------------------------------------- /cpc_templight/cpc-templight.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/cpc_templight/cpc-templight.fzz -------------------------------------------------------------------------------- /fritzing/arduino-flasher-shield.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/arduino-flasher-shield.fzz -------------------------------------------------------------------------------- /fritzing/barebonesduino.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/barebonesduino.fzz -------------------------------------------------------------------------------- /fritzing/ledsketch.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/ledsketch.fzz -------------------------------------------------------------------------------- /fritzing/prosleepduino.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/prosleepduino.fzz -------------------------------------------------------------------------------- /fritzing/sleepduino-standalone.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/sleepduino-standalone.fzz -------------------------------------------------------------------------------- /fritzing/sleepduino.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/sleepduino.fzz -------------------------------------------------------------------------------- /fritzing/sleepduino.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/sleepduino.zip -------------------------------------------------------------------------------- /fritzing/sleepduino2.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/sleepduino2.fzz -------------------------------------------------------------------------------- /fritzing/sleepduinostandalone.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/fritzing/sleepduinostandalone.zip -------------------------------------------------------------------------------- /hardware-broken/arduino/bootloaders/gamebuino_boot/build.bat: -------------------------------------------------------------------------------- 1 | @del /Q obj\*.hex 2 | @del /Q *.hex 3 | set PATH=%PATH%;C:\arduino-1.0.5\hardware\tools\avr\utils\bin 4 | make all 5 | copy obj\*.hex 6 | dir *.hex 7 | pause 8 | -------------------------------------------------------------------------------- /hardware-broken/arduino/bootloaders/gamebuino_boot/loaddemo/loaddemo.ino: -------------------------------------------------------------------------------- 1 | // this code demonstrates the use of load_game 2 | // upload it into gamebuino and then open the serial port monitor, you should see 3 | // the "Send a char to start..." message. send a character to it and it 4 | // will attempt to load and burn BLINK.HEX from the SD card 5 | 6 | #define load_game (*((void(*)(const char* filename))(0x7ffc/2))) 7 | 8 | void setup() { 9 | Serial.begin(9600); 10 | Serial.println("Send a char to start..."); 11 | } 12 | 13 | void loop() { 14 | if (Serial.available()) { 15 | Serial.read(); 16 | load_game("BLINK"); 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /hardware-broken/breadboard/boards.txt: -------------------------------------------------------------------------------- 1 | ############################################################## 2 | 3 | atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock) 4 | 5 | atmega328bb.upload.protocol=stk500 6 | atmega328bb.upload.maximum_size=30720 7 | atmega328bb.upload.speed=57600 8 | 9 | atmega328bb.bootloader.low_fuses=0xE2 10 | atmega328bb.bootloader.high_fuses=0xDA 11 | atmega328bb.bootloader.extended_fuses=0x05 12 | atmega328bb.bootloader.path=arduino:atmega 13 | atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex 14 | atmega328bb.bootloader.unlock_bits=0x3F 15 | atmega328bb.bootloader.lock_bits=0x0F 16 | 17 | atmega328bb.build.mcu=atmega328p 18 | atmega328bb.build.f_cpu=8000000L 19 | atmega328bb.build.core=arduino:arduino 20 | atmega328bb.build.variant=standard 21 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty2313at1.hex: -------------------------------------------------------------------------------- 1 | :1000000012C02AC029C028C027C026C02CC024C0C6 2 | :1000100023C022C021C020C01FC01EC01DC01CC0E4 3 | :100020001BC01AC019C011241FBECFEDCDBF10E0F8 4 | :10003000A0E6B0E0ECE4F1E002C005900D92A0363D 5 | :10004000B107D9F710E0A0E6B0E001C01D92A936D3 6 | :10005000B107E1F704D078C0D3CF0895089557D001 7 | :10006000FCDFFCDFFECF1F920F920FB60F92112420 8 | :100070002F933F934F935F936F937F938F939F93B0 9 | :10008000AF93BF932091640030916500409166006A 10 | :100090005091670070916800DA01C9010296A11DB4 11 | :1000A000B11D672F6A5F6D3730F06D57DA01C901F6 12 | :1000B0000396A11DB11D6093680080936400909326 13 | :1000C0006500A0936600B0936700809160009091F6 14 | :1000D0006100A0916200B09163000196A11DB11D65 15 | :1000E0008093600090936100A0936200B0936300DE 16 | :1000F000BF91AF919F918F917F916F915F914F9140 17 | :100100003F912F910F900FBE0F901F9018957894EC 18 | :1001100080B7836080BF83B7877F83BF83B7887FC3 19 | :10012000826083BF89B7826089BF8EB5887F8EBDAC 20 | :100130008FB58C7F81608FBD8EB5877E8EBD8EB56D 21 | :0C014000887F82608EBD0895F894FFCF88 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty2313at8.hex: -------------------------------------------------------------------------------- 1 | :1000000012C02AC029C028C027C026C02CC024C0C6 2 | :1000100023C022C021C020C01FC01EC01DC01CC0E4 3 | :100020001BC01AC019C011241FBECFEDCDBF10E0F8 4 | :10003000A0E6B0E0ECE4F1E002C005900D92A0363D 5 | :10004000B107D9F710E0A0E6B0E001C01D92A936D3 6 | :10005000B107E1F704D078C0D3CF0895089557D001 7 | :10006000FCDFFCDFFECF1F920F920FB60F92112420 8 | :100070002F933F934F935F936F937F938F939F93B0 9 | :10008000AF93BF932091640030916500409166006A 10 | :100090005091670070916800DA01C9010296A11DB4 11 | :1000A000B11D672F6A5F6D3730F06D57DA01C901F6 12 | :1000B0000396A11DB11D6093680080936400909326 13 | :1000C0006500A0936600B0936700809160009091F6 14 | :1000D0006100A0916200B09163000196A11DB11D65 15 | :1000E0008093600090936100A0936200B0936300DE 16 | :1000F000BF91AF919F918F917F916F915F914F9140 17 | :100100003F912F910F900FBE0F901F9018957894EC 18 | :1001100080B7836080BF83B7877F83BF83B7887FC3 19 | :10012000836083BF89B7826089BF8EB5887F8EBDAB 20 | :100130008FB58C7F81608FBD8EB5877E8EBD8EB56D 21 | :0C014000887F83608EBD0895F894FFCF87 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty24at16.hex: -------------------------------------------------------------------------------- 1 | :1000000010C015C014C013C012C011C010C00FC062 2 | :100010000EC00DC00CC00BC00AC009C008C007C08C 3 | :1000200006C011241FBECFEDCDBF02D002C0E8CF65 4 | :06003000FFCFF894FFCFA2 5 | :00000001FF 6 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty25at1.hex: -------------------------------------------------------------------------------- 1 | :100000000EC026C025C024C02AC022C021C020C0E6 2 | :100010001FC01EC01DC01CC01BC01AC019C01124A7 3 | :100020001FBECFEDCDBF10E0A0E6B0E0E8E5F1E007 4 | :1000300002C005900D92A036B107D9F710E0A0E6F6 5 | :10004000B0E001C01D92A936B107E1F704D082C02B 6 | :10005000D7CF0895089557D0FCDFFCDFFECF1F9265 7 | :100060000F920FB60F9211242F933F934F935F93EC 8 | :100070006F937F938F939F93AF93BF93209164006F 9 | :100080003091650040916600509167007091680062 10 | :10009000DA01C9010296A11DB11D672F6A5F6D3794 11 | :1000A00030F06D57DA01C9010396A11DB11D6093AF 12 | :1000B00068008093640090936500A0936600B093FD 13 | :1000C00067008091600090916100A0916200B09102 14 | :1000D00063000196A11DB11D8093600090936100A3 15 | :1000E000A0936200B0936300BF91AF919F918F91F5 16 | :1000F0007F916F915F914F913F912F910F900FBE24 17 | :100100000F901F901895789480B7806880BF80B753 18 | :10011000806480BF8CB580648CBD8FEF8DBD80B74F 19 | :10012000807F846080BF89B7846089BF83B7887F00 20 | :1001300083BF8AB58C7F81608ABD83B7877F83BF89 21 | :1001400083B7887F826083BF86B1887F836086B9EA 22 | :08015000379A0895F894FFCFDF 23 | :00000001FF 24 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty25at8.hex: -------------------------------------------------------------------------------- 1 | :100000000EC026C025C024C02AC022C021C020C0E6 2 | :100010001FC01EC01DC01CC01BC01AC019C01124A7 3 | :100020001FBECFEDCDBF10E0A0E6B0E0E8E5F1E007 4 | :1000300002C005900D92A036B107D9F710E0A0E6F6 5 | :10004000B0E001C01D92A936B107E1F704D082C02B 6 | :10005000D7CF0895089557D0FCDFFCDFFECF1F9265 7 | :100060000F920FB60F9211242F933F934F935F93EC 8 | :100070006F937F938F939F93AF93BF93209164006F 9 | :100080003091650040916600509167007091680062 10 | :10009000DA01C9010296A11DB11D672F6A5F6D3794 11 | :1000A00030F06D57DA01C9010396A11DB11D6093AF 12 | :1000B00068008093640090936500A0936600B093FD 13 | :1000C00067008091600090916100A0916200B09102 14 | :1000D00063000196A11DB11D8093600090936100A3 15 | :1000E000A0936200B0936300BF91AF919F918F91F5 16 | :1000F0007F916F915F914F913F912F910F900FBE24 17 | :100100000F901F901895789480B7806880BF80B753 18 | :10011000806480BF8CB580648CBD8FEF8DBD80B74F 19 | :10012000807F876080BF89B7846089BF83B7887FFD 20 | :1001300083BF8AB58C7F81608ABD83B7877F83BF89 21 | :1001400083B7887F836083BF86B1887F866086B9E6 22 | :08015000379A0895F894FFCFDF 23 | :00000001FF 24 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty4313at1.hex: -------------------------------------------------------------------------------- 1 | :1000000014C01BC01AC019C018C017C016C015C034 2 | :1000100014C013C012C011C010C00FC00EC00DC05C 3 | :100020000CC00BC00AC009C008C011241FBECFE518 4 | :10003000D1E0DEBFCDBF02D002C0E2CFFFCFF89447 5 | :02004000FFCFF0 6 | :00000001FF 7 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty4313at8.hex: -------------------------------------------------------------------------------- 1 | :1000000014C01BC01AC019C018C017C016C015C034 2 | :1000100014C013C012C011C010C00FC00EC00DC05C 3 | :100020000CC00BC00AC009C008C011241FBECFE518 4 | :10003000D1E0DEBFCDBF02D002C0E2CFFFCFF89447 5 | :02004000FFCFF0 6 | :00000001FF 7 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty44at1.hex: -------------------------------------------------------------------------------- 1 | :1000000010C017C016C015C014C013C012C011C054 2 | :1000100010C00FC00EC00DC00CC00BC00AC009C07C 3 | :1000200008C011241FBECFE5D1E0DEBFCDBF02D096 4 | :0A00300002C0E6CFFFCFF894FFCF27 5 | :00000001FF 6 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty44at8.hex: -------------------------------------------------------------------------------- 1 | :1000000010C017C016C015C014C013C012C011C054 2 | :1000100010C00FC00EC00DC00CC00BC00AC009C07C 3 | :1000200008C011241FBECFE5D1E0DEBFCDBF02D096 4 | :0A00300002C0E6CFFFCFF894FFCF27 5 | :00000001FF 6 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty45at1.hex: -------------------------------------------------------------------------------- 1 | :100000000EC028C027C026C02CC024C023C022C0D8 2 | :1000100021C020C01FC01EC01DC01CC01BC0112499 3 | :100020001FBECFE5D1E0DEBFCDBF10E0A0E6B0E05F 4 | :10003000E2E5F1E002C005900D92A036B107D9F7D4 5 | :1000400010E0A0E6B0E001C01D92A936B107E1F7CB 6 | :1000500004D07DC0D5CF0895089557D0FCDFFCDFD4 7 | :10006000FECF1F920F920FB60F9211242F933F9342 8 | :100070004F935F936F937F938F939F93AF93BF93B0 9 | :1000800020916400309165004091660050916700B6 10 | :1000900070916800DA01C9010296A11DB11D672F98 11 | :1000A0006A5F6D3730F06D57DA01C9010396A11D03 12 | :1000B000B11D609368008093640090936500A093E5 13 | :1000C0006600B09367008091600090916100A091FC 14 | :1000D0006200B09163000196A11DB11D8093600084 15 | :1000E00090936100A0936200B0936300BF91AF91C1 16 | :1000F0009F918F917F916F915F914F913F912F9140 17 | :100100000F900FBE0F901F901895789480B780685D 18 | :1001100080BF80B7806480BF8CB580648CBD8FEF5A 19 | :100120008DBD80B7807F846080BF89B7846089BFC0 20 | :1001300083B7887F83BF8AB58C7F81608ABD83B790 21 | :10014000877F83BF83B7887F826083BF0895F894D9 22 | :02015000FFCFDF 23 | :00000001FF 24 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty45at8.hex: -------------------------------------------------------------------------------- 1 | :100000000EC028C027C026C02CC024C023C022C0D8 2 | :1000100021C020C01FC01EC01DC01CC01BC0112499 3 | :100020001FBECFE5D1E0DEBFCDBF10E0A0E6B0E05F 4 | :10003000E2E5F1E002C005900D92A036B107D9F7D4 5 | :1000400010E0A0E6B0E001C01D92A936B107E1F7CB 6 | :1000500004D07DC0D5CF0895089557D0FCDFFCDFD4 7 | :10006000FECF1F920F920FB60F9211242F933F9342 8 | :100070004F935F936F937F938F939F93AF93BF93B0 9 | :1000800020916400309165004091660050916700B6 10 | :1000900070916800DA01C9010296A11DB11D672F98 11 | :1000A0006A5F6D3730F06D57DA01C9010396A11D03 12 | :1000B000B11D609368008093640090936500A093E5 13 | :1000C0006600B09367008091600090916100A091FC 14 | :1000D0006200B09163000196A11DB11D8093600084 15 | :1000E00090936100A0936200B0936300BF91AF91C1 16 | :1000F0009F918F917F916F915F914F913F912F9140 17 | :100100000F900FBE0F901F901895789480B780685D 18 | :1001100080BF80B7806480BF8CB580648CBD8FEF5A 19 | :100120008DBD80B7807F876080BF89B7846089BFBD 20 | :1001300083B7887F83BF8AB58C7F81608ABD83B790 21 | :10014000877F83BF83B7887F836083BF0895F894D8 22 | :02015000FFCFDF 23 | :00000001FF 24 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty84at1.hex: -------------------------------------------------------------------------------- 1 | :1000000010C02AC029C028C027C026C025C024C0CF 2 | :1000100023C022C021C027C01FC01EC01DC01CC0DD 3 | :100020001BC011241FBECFE5D2E0DEBFCDBF10E064 4 | :10003000A0E6B0E0ECE4F1E002C005900D92A0363D 5 | :10004000B107D9F710E0A0E6B0E001C01D92A936D3 6 | :10005000B107E1F704D078C0D3CF0895089557D001 7 | :10006000FCDFFCDFFECF1F920F920FB60F92112420 8 | :100070002F933F934F935F936F937F938F939F93B0 9 | :10008000AF93BF932091640030916500409166006A 10 | :100090005091670070916800DA01C9014096A11D76 11 | :1000A000B11D672F605D6D3730F06D57DA01C90102 12 | :1000B0004196A11DB11D60936800809364009093E8 13 | :1000C0006500A0936600B0936700809160009091F6 14 | :1000D0006100A0916200B09163000196A11DB11D65 15 | :1000E0008093600090936100A0936200B0936300DE 16 | :1000F000BF91AF919F918F917F916F915F914F9140 17 | :100100003F912F910F900FBE0F901F9018957894EC 18 | :1001100080B7826080BF80B7816080BF83B7826014 19 | :1001200083BF83B7816083BF89B7816089BF8EB584 20 | :1001300082608EBD8EB581608EBD8FB581608FBDB2 21 | :0C014000319A309A379A0895F894FFCF56 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty84at16.hex: -------------------------------------------------------------------------------- 1 | :1000000010C01FC01EC01DC01CC01BC01AC019C01C 2 | :1000100018C017C016C01CC014C013C012C011C035 3 | :1000200010C011241FBECFE5D2E0DEBFCDBF10E06F 4 | :10003000A0E6B0E001C01D92A936B107E1F704D0F7 5 | :1000400063C0DECF089508954CD0FCDFFCDFFECF07 6 | :100050001F920F920FB60F9211242F933F938F93FD 7 | :100060009F93AF93BF938091640090916500A0919E 8 | :100070006600B091670030916800232F2D5F2D3707 9 | :1000800028F02D570296A11DB11D03C00196A11D98 10 | :10009000B11D209368008093640090936500A09345 11 | :1000A0006600B09367008091600090916100A0911C 12 | :1000B0006200B09163000196A11DB11D80936000A4 13 | :1000C00090936100A0936200B0936300BF91AF91E1 14 | :1000D0009F918F913F912F910F900FBE0F901F9086 15 | :1000E0001895789480B7836080BF83B7877F83BF7C 16 | :1000F00083B7887F836083BF89B7816089BF86B1FA 17 | :0C010000876086B9379A0895F894FFCF05 18 | :00000001FF 19 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty84at8.hex: -------------------------------------------------------------------------------- 1 | :1000000010C02AC029C028C027C026C025C024C0CF 2 | :1000100023C022C021C027C01FC01EC01DC01CC0DD 3 | :100020001BC011241FBECFE5D2E0DEBFCDBF10E064 4 | :10003000A0E6B0E0ECE4F1E002C005900D92A0363D 5 | :10004000B107D9F710E0A0E6B0E001C01D92A936D3 6 | :10005000B107E1F704D078C0D3CF0895089557D001 7 | :10006000FCDFFCDFFECF1F920F920FB60F92112420 8 | :100070002F933F934F935F936F937F938F939F93B0 9 | :10008000AF93BF932091640030916500409166006A 10 | :100090005091670070916800DA01C9010296A11DB4 11 | :1000A000B11D672F6A5F6D3730F06D57DA01C901F6 12 | :1000B0000396A11DB11D6093680080936400909326 13 | :1000C0006500A0936600B0936700809160009091F6 14 | :1000D0006100A0916200B09163000196A11DB11D65 15 | :1000E0008093600090936100A0936200B0936300DE 16 | :1000F000BF91AF919F918F917F916F915F914F9140 17 | :100100003F912F910F900FBE0F901F9018957894EC 18 | :1001100080B7826080BF80B7816080BF83B7826014 19 | :1001200083BF83B7816083BF89B7816089BF8EB584 20 | :1001300082608EBD8EB581608EBD8FB581608FBDB2 21 | :0C014000329A319A379A0895F894FFCF54 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty85at1.hex: -------------------------------------------------------------------------------- 1 | :100000000EC028C027C026C025C02BC023C022C0D8 2 | :1000100021C020C01FC01EC01DC01CC01BC0112499 3 | :100020001FBECFE5D2E0DEBFCDBF10E0A0E6B0E05E 4 | :10003000E8E4F1E002C005900D92A036B107D9F7CF 5 | :1000400010E0A0E6B0E001C01D92A936B107E1F7CB 6 | :1000500004D078C0D5CF0895089557D0FCDFFCDFD9 7 | :10006000FECF1F920F920FB60F9211242F933F9342 8 | :100070004F935F936F937F938F939F93AF93BF93B0 9 | :1000800020916400309165004091660050916700B6 10 | :1000900070916800DA01C9014096A11DB11D672F5A 11 | :1000A000605D6D3730F06D57DA01C9014196A11DD1 12 | :1000B000B11D609368008093640090936500A093E5 13 | :1000C0006600B09367008091600090916100A091FC 14 | :1000D0006200B09163000196A11DB11D8093600084 15 | :1000E00090936100A0936200B0936300BF91AF91C1 16 | :1000F0009F918F917F916F915F914F913F912F9140 17 | :100100000F900FBE0F901F90189578948AB582605B 18 | :100110008ABD8AB581608ABD83B7826083BF83B799 19 | :10012000816083BF89B7826089BF80B7826080BFEA 20 | :1001300080B7816080BF80B7806480BF319A309A79 21 | :08014000379A0895F894FFCFEF 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty85at16.hex: -------------------------------------------------------------------------------- 1 | :100000000EC01DC01CC01BC021C019C018C017C025 2 | :1000100016C015C014C013C012C011C010C01124E6 3 | :100020001FBECFE5D2E0DEBFCDBF10E0A0E6B0E05E 4 | :1000300001C01D92A936B107E1F704D064C0E0CF3A 5 | :10004000089508954CD0FCDFFCDFFECF1F920F9285 6 | :100050000FB60F9211242F933F938F939F93AF93DB 7 | :10006000BF938091640090916500A0916600B0916B 8 | :10007000670030916800232F2D5F2D3728F02D5712 9 | :100080000296A11DB11D03C00196A11DB11D2093B3 10 | :1000900068008093640090936500A0936600B0931D 11 | :1000A00067008091600090916100A0916200B09122 12 | :1000B00063000196A11DB11D8093600090936100C3 13 | :1000C000A0936200B0936300BF91AF919F918F9115 14 | :1000D0003F912F910F900FBE0F901F90189578941D 15 | :1000E00080B7806880BF80B7806480BF8CB5806433 16 | :1000F0008CBD8FEF8DBD80B7807F876080BF89B753 17 | :0A010000846089BF0895F894FFCFD2 18 | :00000001FF 19 | -------------------------------------------------------------------------------- /hardware-broken/tiny/bootloaders/empty/empty85at8.hex: -------------------------------------------------------------------------------- 1 | :100000000EC028C027C026C025C02BC023C022C0D8 2 | :1000100021C020C01FC01EC01DC01CC01BC0112499 3 | :100020001FBECFE5D2E0DEBFCDBF10E0A0E6B0E05E 4 | :10003000E8E4F1E002C005900D92A036B107D9F7CF 5 | :1000400010E0A0E6B0E001C01D92A936B107E1F7CB 6 | :1000500004D078C0D5CF0895089557D0FCDFFCDFD9 7 | :10006000FECF1F920F920FB60F9211242F933F9342 8 | :100070004F935F936F937F938F939F93AF93BF93B0 9 | :1000800020916400309165004091660050916700B6 10 | :1000900070916800DA01C9010296A11DB11D672F98 11 | :1000A0006A5F6D3730F06D57DA01C9010396A11D03 12 | :1000B000B11D609368008093640090936500A093E5 13 | :1000C0006600B09367008091600090916100A091FC 14 | :1000D0006200B09163000196A11DB11D8093600084 15 | :1000E00090936100A0936200B0936300BF91AF91C1 16 | :1000F0009F918F917F916F915F914F913F912F9140 17 | :100100000F900FBE0F901F90189578948AB582605B 18 | :100110008ABD8AB581608ABD83B7826083BF83B799 19 | :10012000816083BF89B7826089BF80B7826080BFEA 20 | :1001300080B7816080BF80B7806480BF329A319A77 21 | :08014000379A0895F894FFCFEF 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/empty/Arduino.h: -------------------------------------------------------------------------------- 1 | #ifndef Arduino_h 2 | #define Arduino_h 3 | 4 | #endif 5 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/empty/WProgram.h: -------------------------------------------------------------------------------- 1 | #ifndef WProgram_h 2 | #define WProgram_h 3 | 4 | #endif 5 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/empty/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | set PATH=%PATH%;C:\Arduino\arduino-1.0\hardware\tools\avr\bin 3 | set PATH=%PATH%;C:\arduino\arduino-1.0\hardware\tools\avr\etc 4 | 5 | cd %TEMP% 6 | dir *.hex /s 7 | 8 | cd C:\Users\BRIANC~1.001\AppData\Local\Temp\build5703187254703185841.tmp 9 | 10 | avr-objdump.exe -S sketch_sep22a.cpp.elf > C:\Temp\dump.cpp & C:\Temp\dump.cpp 11 | */ 12 | 13 | int main(void) 14 | { 15 | for (;;); 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/tiny/Arduino.h: -------------------------------------------------------------------------------- 1 | #ifndef Arduino_h 2 | #define Arduino_h 3 | 4 | #include 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/tiny/TinyDebugSerial115200.cpp: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | 3 | TinyDebugSerial.cpp - Tiny write-only software serial. 4 | 5 | Copyright 2010 Rowdy Dog Software. 6 | 7 | This file is part of Arduino-Tiny. 8 | 9 | Arduino-Tiny is free software: you can redistribute it and/or modify it 10 | under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or (at your 12 | option) any later version. 13 | 14 | Arduino-Tiny is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 | License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with Arduino-Tiny. If not, see . 21 | 22 | ==============================================================================*/ 23 | 24 | #include "TinyDebugSerial.h" 25 | 26 | TinyDebugSerialWriter_115200 tdsw115200; 27 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/tiny/TinyDebugSerial38400.cpp: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | 3 | TinyDebugSerial.cpp - Tiny write-only software serial. 4 | 5 | Copyright 2010 Rowdy Dog Software. 6 | 7 | This file is part of Arduino-Tiny. 8 | 9 | Arduino-Tiny is free software: you can redistribute it and/or modify it 10 | under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or (at your 12 | option) any later version. 13 | 14 | Arduino-Tiny is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 | License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with Arduino-Tiny. If not, see . 21 | 22 | ==============================================================================*/ 23 | 24 | #include "TinyDebugSerial.h" 25 | 26 | TinyDebugSerialWriter_38400 tdsw38400; 27 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/tiny/TinyDebugSerial9600.cpp: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | 3 | TinyDebugSerial.cpp - Tiny write-only software serial. 4 | 5 | Copyright 2010 Rowdy Dog Software. 6 | 7 | This file is part of Arduino-Tiny. 8 | 9 | Arduino-Tiny is free software: you can redistribute it and/or modify it 10 | under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or (at your 12 | option) any later version. 13 | 14 | Arduino-Tiny is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 | License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with Arduino-Tiny. If not, see . 21 | 22 | ==============================================================================*/ 23 | 24 | #include "TinyDebugSerial.h" 25 | 26 | TinyDebugSerialWriter_9600 tdsw9600; 27 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/tiny/WConstants.h: -------------------------------------------------------------------------------- 1 | #include "wiring.h" 2 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/tiny/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | init(); 6 | 7 | setup(); 8 | 9 | for (;;) 10 | loop(); 11 | 12 | return 0; 13 | } 14 | 15 | -------------------------------------------------------------------------------- /hardware-broken/tiny/cores/tiny/pins_arduino.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/hardware-broken/tiny/cores/tiny/pins_arduino.c -------------------------------------------------------------------------------- /hardware-broken/tiny/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/hardware-broken/tiny/readme.txt -------------------------------------------------------------------------------- /hardware/arduino/bootloaders/gamebuino_boot/build.bat: -------------------------------------------------------------------------------- 1 | @del /Q obj\*.hex 2 | @del /Q *.hex 3 | set PATH=%PATH%;C:\arduino-1.0.5\hardware\tools\avr\utils\bin 4 | make all 5 | copy obj\*.hex 6 | dir *.hex 7 | pause 8 | -------------------------------------------------------------------------------- /hardware/arduino/bootloaders/gamebuino_boot/loaddemo/loaddemo.ino: -------------------------------------------------------------------------------- 1 | // this code demonstrates the use of load_game 2 | // upload it into gamebuino and then open the serial port monitor, you should see 3 | // the "Send a char to start..." message. send a character to it and it 4 | // will attempt to load and burn BLINK.HEX from the SD card 5 | 6 | #define load_game (*((void(*)(const char* filename))(0x7ffc/2))) 7 | 8 | void setup() { 9 | Serial.begin(9600); 10 | Serial.println("Send a char to start..."); 11 | } 12 | 13 | void loop() { 14 | if (Serial.available()) { 15 | Serial.read(); 16 | load_game("BLINK"); 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /hardware/breadboard/boards.txt: -------------------------------------------------------------------------------- 1 | ############################################################## 2 | 3 | atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock) 4 | 5 | atmega328bb.upload.protocol=stk500 6 | atmega328bb.upload.maximum_size=30720 7 | atmega328bb.upload.speed=57600 8 | 9 | atmega328bb.bootloader.low_fuses=0xE2 10 | atmega328bb.bootloader.high_fuses=0xDA 11 | atmega328bb.bootloader.extended_fuses=0x05 12 | atmega328bb.bootloader.path=arduino:atmega 13 | atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex 14 | atmega328bb.bootloader.unlock_bits=0x3F 15 | atmega328bb.bootloader.lock_bits=0x0F 16 | 17 | atmega328bb.build.mcu=atmega328p 18 | atmega328bb.build.f_cpu=8000000L 19 | atmega328bb.build.core=arduino:arduino 20 | atmega328bb.build.variant=standard 21 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty2313at1.hex: -------------------------------------------------------------------------------- 1 | :1000000012C02AC029C028C027C026C02CC024C0C6 2 | :1000100023C022C021C020C01FC01EC01DC01CC0E4 3 | :100020001BC01AC019C011241FBECFEDCDBF10E0F8 4 | :10003000A0E6B0E0ECE4F1E002C005900D92A0363D 5 | :10004000B107D9F710E0A0E6B0E001C01D92A936D3 6 | :10005000B107E1F704D078C0D3CF0895089557D001 7 | :10006000FCDFFCDFFECF1F920F920FB60F92112420 8 | :100070002F933F934F935F936F937F938F939F93B0 9 | :10008000AF93BF932091640030916500409166006A 10 | :100090005091670070916800DA01C9010296A11DB4 11 | :1000A000B11D672F6A5F6D3730F06D57DA01C901F6 12 | :1000B0000396A11DB11D6093680080936400909326 13 | :1000C0006500A0936600B0936700809160009091F6 14 | :1000D0006100A0916200B09163000196A11DB11D65 15 | :1000E0008093600090936100A0936200B0936300DE 16 | :1000F000BF91AF919F918F917F916F915F914F9140 17 | :100100003F912F910F900FBE0F901F9018957894EC 18 | :1001100080B7836080BF83B7877F83BF83B7887FC3 19 | :10012000826083BF89B7826089BF8EB5887F8EBDAC 20 | :100130008FB58C7F81608FBD8EB5877E8EBD8EB56D 21 | :0C014000887F82608EBD0895F894FFCF88 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty2313at8.hex: -------------------------------------------------------------------------------- 1 | :1000000012C02AC029C028C027C026C02CC024C0C6 2 | :1000100023C022C021C020C01FC01EC01DC01CC0E4 3 | :100020001BC01AC019C011241FBECFEDCDBF10E0F8 4 | :10003000A0E6B0E0ECE4F1E002C005900D92A0363D 5 | :10004000B107D9F710E0A0E6B0E001C01D92A936D3 6 | :10005000B107E1F704D078C0D3CF0895089557D001 7 | :10006000FCDFFCDFFECF1F920F920FB60F92112420 8 | :100070002F933F934F935F936F937F938F939F93B0 9 | :10008000AF93BF932091640030916500409166006A 10 | :100090005091670070916800DA01C9010296A11DB4 11 | :1000A000B11D672F6A5F6D3730F06D57DA01C901F6 12 | :1000B0000396A11DB11D6093680080936400909326 13 | :1000C0006500A0936600B0936700809160009091F6 14 | :1000D0006100A0916200B09163000196A11DB11D65 15 | :1000E0008093600090936100A0936200B0936300DE 16 | :1000F000BF91AF919F918F917F916F915F914F9140 17 | :100100003F912F910F900FBE0F901F9018957894EC 18 | :1001100080B7836080BF83B7877F83BF83B7887FC3 19 | :10012000836083BF89B7826089BF8EB5887F8EBDAB 20 | :100130008FB58C7F81608FBD8EB5877E8EBD8EB56D 21 | :0C014000887F83608EBD0895F894FFCF87 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty24at16.hex: -------------------------------------------------------------------------------- 1 | :1000000010C015C014C013C012C011C010C00FC062 2 | :100010000EC00DC00CC00BC00AC009C008C007C08C 3 | :1000200006C011241FBECFEDCDBF02D002C0E8CF65 4 | :06003000FFCFF894FFCFA2 5 | :00000001FF 6 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty25at1.hex: -------------------------------------------------------------------------------- 1 | :100000000EC026C025C024C02AC022C021C020C0E6 2 | :100010001FC01EC01DC01CC01BC01AC019C01124A7 3 | :100020001FBECFEDCDBF10E0A0E6B0E0E8E5F1E007 4 | :1000300002C005900D92A036B107D9F710E0A0E6F6 5 | :10004000B0E001C01D92A936B107E1F704D082C02B 6 | :10005000D7CF0895089557D0FCDFFCDFFECF1F9265 7 | :100060000F920FB60F9211242F933F934F935F93EC 8 | :100070006F937F938F939F93AF93BF93209164006F 9 | :100080003091650040916600509167007091680062 10 | :10009000DA01C9010296A11DB11D672F6A5F6D3794 11 | :1000A00030F06D57DA01C9010396A11DB11D6093AF 12 | :1000B00068008093640090936500A0936600B093FD 13 | :1000C00067008091600090916100A0916200B09102 14 | :1000D00063000196A11DB11D8093600090936100A3 15 | :1000E000A0936200B0936300BF91AF919F918F91F5 16 | :1000F0007F916F915F914F913F912F910F900FBE24 17 | :100100000F901F901895789480B7806880BF80B753 18 | :10011000806480BF8CB580648CBD8FEF8DBD80B74F 19 | :10012000807F846080BF89B7846089BF83B7887F00 20 | :1001300083BF8AB58C7F81608ABD83B7877F83BF89 21 | :1001400083B7887F826083BF86B1887F836086B9EA 22 | :08015000379A0895F894FFCFDF 23 | :00000001FF 24 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty25at8.hex: -------------------------------------------------------------------------------- 1 | :100000000EC026C025C024C02AC022C021C020C0E6 2 | :100010001FC01EC01DC01CC01BC01AC019C01124A7 3 | :100020001FBECFEDCDBF10E0A0E6B0E0E8E5F1E007 4 | :1000300002C005900D92A036B107D9F710E0A0E6F6 5 | :10004000B0E001C01D92A936B107E1F704D082C02B 6 | :10005000D7CF0895089557D0FCDFFCDFFECF1F9265 7 | :100060000F920FB60F9211242F933F934F935F93EC 8 | :100070006F937F938F939F93AF93BF93209164006F 9 | :100080003091650040916600509167007091680062 10 | :10009000DA01C9010296A11DB11D672F6A5F6D3794 11 | :1000A00030F06D57DA01C9010396A11DB11D6093AF 12 | :1000B00068008093640090936500A0936600B093FD 13 | :1000C00067008091600090916100A0916200B09102 14 | :1000D00063000196A11DB11D8093600090936100A3 15 | :1000E000A0936200B0936300BF91AF919F918F91F5 16 | :1000F0007F916F915F914F913F912F910F900FBE24 17 | :100100000F901F901895789480B7806880BF80B753 18 | :10011000806480BF8CB580648CBD8FEF8DBD80B74F 19 | :10012000807F876080BF89B7846089BF83B7887FFD 20 | :1001300083BF8AB58C7F81608ABD83B7877F83BF89 21 | :1001400083B7887F836083BF86B1887F866086B9E6 22 | :08015000379A0895F894FFCFDF 23 | :00000001FF 24 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty4313at1.hex: -------------------------------------------------------------------------------- 1 | :1000000014C01BC01AC019C018C017C016C015C034 2 | :1000100014C013C012C011C010C00FC00EC00DC05C 3 | :100020000CC00BC00AC009C008C011241FBECFE518 4 | :10003000D1E0DEBFCDBF02D002C0E2CFFFCFF89447 5 | :02004000FFCFF0 6 | :00000001FF 7 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty4313at8.hex: -------------------------------------------------------------------------------- 1 | :1000000014C01BC01AC019C018C017C016C015C034 2 | :1000100014C013C012C011C010C00FC00EC00DC05C 3 | :100020000CC00BC00AC009C008C011241FBECFE518 4 | :10003000D1E0DEBFCDBF02D002C0E2CFFFCFF89447 5 | :02004000FFCFF0 6 | :00000001FF 7 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty44at1.hex: -------------------------------------------------------------------------------- 1 | :1000000010C017C016C015C014C013C012C011C054 2 | :1000100010C00FC00EC00DC00CC00BC00AC009C07C 3 | :1000200008C011241FBECFE5D1E0DEBFCDBF02D096 4 | :0A00300002C0E6CFFFCFF894FFCF27 5 | :00000001FF 6 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty44at8.hex: -------------------------------------------------------------------------------- 1 | :1000000010C017C016C015C014C013C012C011C054 2 | :1000100010C00FC00EC00DC00CC00BC00AC009C07C 3 | :1000200008C011241FBECFE5D1E0DEBFCDBF02D096 4 | :0A00300002C0E6CFFFCFF894FFCF27 5 | :00000001FF 6 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty45at1.hex: -------------------------------------------------------------------------------- 1 | :100000000EC028C027C026C02CC024C023C022C0D8 2 | :1000100021C020C01FC01EC01DC01CC01BC0112499 3 | :100020001FBECFE5D1E0DEBFCDBF10E0A0E6B0E05F 4 | :10003000E2E5F1E002C005900D92A036B107D9F7D4 5 | :1000400010E0A0E6B0E001C01D92A936B107E1F7CB 6 | :1000500004D07DC0D5CF0895089557D0FCDFFCDFD4 7 | :10006000FECF1F920F920FB60F9211242F933F9342 8 | :100070004F935F936F937F938F939F93AF93BF93B0 9 | :1000800020916400309165004091660050916700B6 10 | :1000900070916800DA01C9010296A11DB11D672F98 11 | :1000A0006A5F6D3730F06D57DA01C9010396A11D03 12 | :1000B000B11D609368008093640090936500A093E5 13 | :1000C0006600B09367008091600090916100A091FC 14 | :1000D0006200B09163000196A11DB11D8093600084 15 | :1000E00090936100A0936200B0936300BF91AF91C1 16 | :1000F0009F918F917F916F915F914F913F912F9140 17 | :100100000F900FBE0F901F901895789480B780685D 18 | :1001100080BF80B7806480BF8CB580648CBD8FEF5A 19 | :100120008DBD80B7807F846080BF89B7846089BFC0 20 | :1001300083B7887F83BF8AB58C7F81608ABD83B790 21 | :10014000877F83BF83B7887F826083BF0895F894D9 22 | :02015000FFCFDF 23 | :00000001FF 24 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty45at8.hex: -------------------------------------------------------------------------------- 1 | :100000000EC028C027C026C02CC024C023C022C0D8 2 | :1000100021C020C01FC01EC01DC01CC01BC0112499 3 | :100020001FBECFE5D1E0DEBFCDBF10E0A0E6B0E05F 4 | :10003000E2E5F1E002C005900D92A036B107D9F7D4 5 | :1000400010E0A0E6B0E001C01D92A936B107E1F7CB 6 | :1000500004D07DC0D5CF0895089557D0FCDFFCDFD4 7 | :10006000FECF1F920F920FB60F9211242F933F9342 8 | :100070004F935F936F937F938F939F93AF93BF93B0 9 | :1000800020916400309165004091660050916700B6 10 | :1000900070916800DA01C9010296A11DB11D672F98 11 | :1000A0006A5F6D3730F06D57DA01C9010396A11D03 12 | :1000B000B11D609368008093640090936500A093E5 13 | :1000C0006600B09367008091600090916100A091FC 14 | :1000D0006200B09163000196A11DB11D8093600084 15 | :1000E00090936100A0936200B0936300BF91AF91C1 16 | :1000F0009F918F917F916F915F914F913F912F9140 17 | :100100000F900FBE0F901F901895789480B780685D 18 | :1001100080BF80B7806480BF8CB580648CBD8FEF5A 19 | :100120008DBD80B7807F876080BF89B7846089BFBD 20 | :1001300083B7887F83BF8AB58C7F81608ABD83B790 21 | :10014000877F83BF83B7887F836083BF0895F894D8 22 | :02015000FFCFDF 23 | :00000001FF 24 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty84at1.hex: -------------------------------------------------------------------------------- 1 | :1000000010C02AC029C028C027C026C025C024C0CF 2 | :1000100023C022C021C027C01FC01EC01DC01CC0DD 3 | :100020001BC011241FBECFE5D2E0DEBFCDBF10E064 4 | :10003000A0E6B0E0ECE4F1E002C005900D92A0363D 5 | :10004000B107D9F710E0A0E6B0E001C01D92A936D3 6 | :10005000B107E1F704D078C0D3CF0895089557D001 7 | :10006000FCDFFCDFFECF1F920F920FB60F92112420 8 | :100070002F933F934F935F936F937F938F939F93B0 9 | :10008000AF93BF932091640030916500409166006A 10 | :100090005091670070916800DA01C9014096A11D76 11 | :1000A000B11D672F605D6D3730F06D57DA01C90102 12 | :1000B0004196A11DB11D60936800809364009093E8 13 | :1000C0006500A0936600B0936700809160009091F6 14 | :1000D0006100A0916200B09163000196A11DB11D65 15 | :1000E0008093600090936100A0936200B0936300DE 16 | :1000F000BF91AF919F918F917F916F915F914F9140 17 | :100100003F912F910F900FBE0F901F9018957894EC 18 | :1001100080B7826080BF80B7816080BF83B7826014 19 | :1001200083BF83B7816083BF89B7816089BF8EB584 20 | :1001300082608EBD8EB581608EBD8FB581608FBDB2 21 | :0C014000319A309A379A0895F894FFCF56 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty84at16.hex: -------------------------------------------------------------------------------- 1 | :1000000010C01FC01EC01DC01CC01BC01AC019C01C 2 | :1000100018C017C016C01CC014C013C012C011C035 3 | :1000200010C011241FBECFE5D2E0DEBFCDBF10E06F 4 | :10003000A0E6B0E001C01D92A936B107E1F704D0F7 5 | :1000400063C0DECF089508954CD0FCDFFCDFFECF07 6 | :100050001F920F920FB60F9211242F933F938F93FD 7 | :100060009F93AF93BF938091640090916500A0919E 8 | :100070006600B091670030916800232F2D5F2D3707 9 | :1000800028F02D570296A11DB11D03C00196A11D98 10 | :10009000B11D209368008093640090936500A09345 11 | :1000A0006600B09367008091600090916100A0911C 12 | :1000B0006200B09163000196A11DB11D80936000A4 13 | :1000C00090936100A0936200B0936300BF91AF91E1 14 | :1000D0009F918F913F912F910F900FBE0F901F9086 15 | :1000E0001895789480B7836080BF83B7877F83BF7C 16 | :1000F00083B7887F836083BF89B7816089BF86B1FA 17 | :0C010000876086B9379A0895F894FFCF05 18 | :00000001FF 19 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty84at8.hex: -------------------------------------------------------------------------------- 1 | :1000000010C02AC029C028C027C026C025C024C0CF 2 | :1000100023C022C021C027C01FC01EC01DC01CC0DD 3 | :100020001BC011241FBECFE5D2E0DEBFCDBF10E064 4 | :10003000A0E6B0E0ECE4F1E002C005900D92A0363D 5 | :10004000B107D9F710E0A0E6B0E001C01D92A936D3 6 | :10005000B107E1F704D078C0D3CF0895089557D001 7 | :10006000FCDFFCDFFECF1F920F920FB60F92112420 8 | :100070002F933F934F935F936F937F938F939F93B0 9 | :10008000AF93BF932091640030916500409166006A 10 | :100090005091670070916800DA01C9010296A11DB4 11 | :1000A000B11D672F6A5F6D3730F06D57DA01C901F6 12 | :1000B0000396A11DB11D6093680080936400909326 13 | :1000C0006500A0936600B0936700809160009091F6 14 | :1000D0006100A0916200B09163000196A11DB11D65 15 | :1000E0008093600090936100A0936200B0936300DE 16 | :1000F000BF91AF919F918F917F916F915F914F9140 17 | :100100003F912F910F900FBE0F901F9018957894EC 18 | :1001100080B7826080BF80B7816080BF83B7826014 19 | :1001200083BF83B7816083BF89B7816089BF8EB584 20 | :1001300082608EBD8EB581608EBD8FB581608FBDB2 21 | :0C014000329A319A379A0895F894FFCF54 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty85at1.hex: -------------------------------------------------------------------------------- 1 | :100000000EC028C027C026C025C02BC023C022C0D8 2 | :1000100021C020C01FC01EC01DC01CC01BC0112499 3 | :100020001FBECFE5D2E0DEBFCDBF10E0A0E6B0E05E 4 | :10003000E8E4F1E002C005900D92A036B107D9F7CF 5 | :1000400010E0A0E6B0E001C01D92A936B107E1F7CB 6 | :1000500004D078C0D5CF0895089557D0FCDFFCDFD9 7 | :10006000FECF1F920F920FB60F9211242F933F9342 8 | :100070004F935F936F937F938F939F93AF93BF93B0 9 | :1000800020916400309165004091660050916700B6 10 | :1000900070916800DA01C9014096A11DB11D672F5A 11 | :1000A000605D6D3730F06D57DA01C9014196A11DD1 12 | :1000B000B11D609368008093640090936500A093E5 13 | :1000C0006600B09367008091600090916100A091FC 14 | :1000D0006200B09163000196A11DB11D8093600084 15 | :1000E00090936100A0936200B0936300BF91AF91C1 16 | :1000F0009F918F917F916F915F914F913F912F9140 17 | :100100000F900FBE0F901F90189578948AB582605B 18 | :100110008ABD8AB581608ABD83B7826083BF83B799 19 | :10012000816083BF89B7826089BF80B7826080BFEA 20 | :1001300080B7816080BF80B7806480BF319A309A79 21 | :08014000379A0895F894FFCFEF 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty85at16.hex: -------------------------------------------------------------------------------- 1 | :100000000EC01DC01CC01BC021C019C018C017C025 2 | :1000100016C015C014C013C012C011C010C01124E6 3 | :100020001FBECFE5D2E0DEBFCDBF10E0A0E6B0E05E 4 | :1000300001C01D92A936B107E1F704D064C0E0CF3A 5 | :10004000089508954CD0FCDFFCDFFECF1F920F9285 6 | :100050000FB60F9211242F933F938F939F93AF93DB 7 | :10006000BF938091640090916500A0916600B0916B 8 | :10007000670030916800232F2D5F2D3728F02D5712 9 | :100080000296A11DB11D03C00196A11DB11D2093B3 10 | :1000900068008093640090936500A0936600B0931D 11 | :1000A00067008091600090916100A0916200B09122 12 | :1000B00063000196A11DB11D8093600090936100C3 13 | :1000C000A0936200B0936300BF91AF919F918F9115 14 | :1000D0003F912F910F900FBE0F901F90189578941D 15 | :1000E00080B7806880BF80B7806480BF8CB5806433 16 | :1000F0008CBD8FEF8DBD80B7807F876080BF89B753 17 | :0A010000846089BF0895F894FFCFD2 18 | :00000001FF 19 | -------------------------------------------------------------------------------- /hardware/tiny/bootloaders/empty/empty85at8.hex: -------------------------------------------------------------------------------- 1 | :100000000EC028C027C026C025C02BC023C022C0D8 2 | :1000100021C020C01FC01EC01DC01CC01BC0112499 3 | :100020001FBECFE5D2E0DEBFCDBF10E0A0E6B0E05E 4 | :10003000E8E4F1E002C005900D92A036B107D9F7CF 5 | :1000400010E0A0E6B0E001C01D92A936B107E1F7CB 6 | :1000500004D078C0D5CF0895089557D0FCDFFCDFD9 7 | :10006000FECF1F920F920FB60F9211242F933F9342 8 | :100070004F935F936F937F938F939F93AF93BF93B0 9 | :1000800020916400309165004091660050916700B6 10 | :1000900070916800DA01C9010296A11DB11D672F98 11 | :1000A0006A5F6D3730F06D57DA01C9010396A11D03 12 | :1000B000B11D609368008093640090936500A093E5 13 | :1000C0006600B09367008091600090916100A091FC 14 | :1000D0006200B09163000196A11DB11D8093600084 15 | :1000E00090936100A0936200B0936300BF91AF91C1 16 | :1000F0009F918F917F916F915F914F913F912F9140 17 | :100100000F900FBE0F901F90189578948AB582605B 18 | :100110008ABD8AB581608ABD83B7826083BF83B799 19 | :10012000816083BF89B7826089BF80B7826080BFEA 20 | :1001300080B7816080BF80B7806480BF329A319A77 21 | :08014000379A0895F894FFCFEF 22 | :00000001FF 23 | -------------------------------------------------------------------------------- /hardware/tiny/cores/empty/Arduino.h: -------------------------------------------------------------------------------- 1 | #ifndef Arduino_h 2 | #define Arduino_h 3 | 4 | #endif 5 | -------------------------------------------------------------------------------- /hardware/tiny/cores/empty/WProgram.h: -------------------------------------------------------------------------------- 1 | #ifndef WProgram_h 2 | #define WProgram_h 3 | 4 | #endif 5 | -------------------------------------------------------------------------------- /hardware/tiny/cores/empty/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | set PATH=%PATH%;C:\Arduino\arduino-1.0\hardware\tools\avr\bin 3 | set PATH=%PATH%;C:\arduino\arduino-1.0\hardware\tools\avr\etc 4 | 5 | cd %TEMP% 6 | dir *.hex /s 7 | 8 | cd C:\Users\BRIANC~1.001\AppData\Local\Temp\build5703187254703185841.tmp 9 | 10 | avr-objdump.exe -S sketch_sep22a.cpp.elf > C:\Temp\dump.cpp & C:\Temp\dump.cpp 11 | */ 12 | 13 | int main(void) 14 | { 15 | for (;;); 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /hardware/tiny/cores/tiny/Arduino.h: -------------------------------------------------------------------------------- 1 | #ifndef Arduino_h 2 | #define Arduino_h 3 | 4 | #include 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /hardware/tiny/cores/tiny/Stream.h: -------------------------------------------------------------------------------- 1 | /* 2 | Stream.h - base class for character-based streams. 3 | Copyright (c) 2010 David A. Mellis. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef Stream_h 21 | #define Stream_h 22 | 23 | #include 24 | #include "Print.h" 25 | 26 | class Stream : public Print 27 | { 28 | public: 29 | virtual int available() = 0; 30 | virtual int read() = 0; 31 | virtual int peek() = 0; 32 | virtual void flush() = 0; 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /hardware/tiny/cores/tiny/TinyDebugSerial115200.cpp: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | 3 | TinyDebugSerial.cpp - Tiny write-only software serial. 4 | 5 | Copyright 2010 Rowdy Dog Software. 6 | 7 | This file is part of Arduino-Tiny. 8 | 9 | Arduino-Tiny is free software: you can redistribute it and/or modify it 10 | under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or (at your 12 | option) any later version. 13 | 14 | Arduino-Tiny is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 | License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with Arduino-Tiny. If not, see . 21 | 22 | ==============================================================================*/ 23 | 24 | #include "TinyDebugSerial.h" 25 | 26 | TinyDebugSerialWriter_115200 tdsw115200; 27 | -------------------------------------------------------------------------------- /hardware/tiny/cores/tiny/TinyDebugSerial38400.cpp: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | 3 | TinyDebugSerial.cpp - Tiny write-only software serial. 4 | 5 | Copyright 2010 Rowdy Dog Software. 6 | 7 | This file is part of Arduino-Tiny. 8 | 9 | Arduino-Tiny is free software: you can redistribute it and/or modify it 10 | under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or (at your 12 | option) any later version. 13 | 14 | Arduino-Tiny is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 | License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with Arduino-Tiny. If not, see . 21 | 22 | ==============================================================================*/ 23 | 24 | #include "TinyDebugSerial.h" 25 | 26 | TinyDebugSerialWriter_38400 tdsw38400; 27 | -------------------------------------------------------------------------------- /hardware/tiny/cores/tiny/TinyDebugSerial9600.cpp: -------------------------------------------------------------------------------- 1 | /*============================================================================== 2 | 3 | TinyDebugSerial.cpp - Tiny write-only software serial. 4 | 5 | Copyright 2010 Rowdy Dog Software. 6 | 7 | This file is part of Arduino-Tiny. 8 | 9 | Arduino-Tiny is free software: you can redistribute it and/or modify it 10 | under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or (at your 12 | option) any later version. 13 | 14 | Arduino-Tiny is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 | License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with Arduino-Tiny. If not, see . 21 | 22 | ==============================================================================*/ 23 | 24 | #include "TinyDebugSerial.h" 25 | 26 | TinyDebugSerialWriter_9600 tdsw9600; 27 | -------------------------------------------------------------------------------- /hardware/tiny/cores/tiny/WConstants.h: -------------------------------------------------------------------------------- 1 | #include "wiring.h" 2 | -------------------------------------------------------------------------------- /hardware/tiny/cores/tiny/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | init(); 6 | 7 | setup(); 8 | 9 | for (;;) 10 | loop(); 11 | 12 | return 0; 13 | } 14 | 15 | -------------------------------------------------------------------------------- /hardware/tiny/cores/tiny/pins_arduino.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/hardware/tiny/cores/tiny/pins_arduino.c -------------------------------------------------------------------------------- /hardware/tiny/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/hardware/tiny/readme.txt -------------------------------------------------------------------------------- /libraries/Adafruit_Motor_Shield_V2_Library/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map for AFMotor 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | Adafruit_MotorShield KEYWORD1 10 | Adafruit_DCMotor KEYWORD1 11 | Adafruit_StepperMotor KEYWORD1 12 | 13 | ####################################### 14 | # Methods and Functions (KEYWORD2) 15 | ####################################### 16 | 17 | enable KEYWORD2 18 | run KEYWORD2 19 | setSpeed KEYWORD2 20 | step KEYWORD2 21 | onestep KEYWORD2 22 | release KEYWORD2 23 | getMotor KEYWORD2 24 | getStepper KEYWORD2 25 | setPin KEYWORD2 26 | setPWM KEYWORD2 27 | 28 | ####################################### 29 | # Constants (LITERAL1) 30 | ####################################### 31 | 32 | MICROSTEPPING LITERAL1 33 | FORWARD LITERAL1 34 | BACKWARD LITERAL1 35 | BRAKE LITERAL1 36 | RELEASE LITERAL1 37 | SINGLE LITERAL1 38 | DOUBLE LITERAL1 39 | INTERLEAVE LITERAL1 40 | MICROSTEP LITERAL1 -------------------------------------------------------------------------------- /libraries/Adafruit_Motor_Shield_V2_Library/library.properties: -------------------------------------------------------------------------------- 1 | name=Adafruit Motor Shield V2 Library 2 | version=1.0.4 3 | author=Adafruit 4 | maintainer=Adafruit 5 | sentence=Library for the Adafruit Motor Shield V2 for Arduino. It supports DC motors & stepper motors with microstepping as well as stacking-support. 6 | paragraph=Library for the Adafruit Motor Shield V2 for Arduino. It supports DC motors & stepper motors with microstepping as well as stacking-support. 7 | category=Device Control 8 | url=https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library 9 | architectures=* 10 | -------------------------------------------------------------------------------- /libraries/Adafruit_NFCShield_I2C/README.txt: -------------------------------------------------------------------------------- 1 | This is a library for the Adafruit PN532 NFC/RFID breakout boards 2 | This library works with the Adafruit NFC breakout and shield 3 | ----> https://www.adafruit.com/products/364 4 | ----> https://www.adafruit.com/products/789 5 | 6 | Check out the links above for our tutorials and wiring diagrams 7 | These chips use SPI or I2C to communicate 8 | 9 | Adafruit invests time and resources providing this open source code, 10 | please support Adafruit and open-source hardware by purchasing 11 | products from Adafruit! 12 | 13 | Written by Limor Fried/Ladyada & Kevin Townsend for Adafruit Industries. 14 | BSD license, check license.txt for more information 15 | All text above must be included in any redistribution 16 | 17 | To download: click the ZIP button above, rename 18 | the uncompressed folder Adafruit_NFCShield_I2C. Check that the 19 | Adafruit_NFCShield_I2C folder contains Adafruit_NFCShield_I2C.cpp and 20 | Adafruit_NFCShield_I2C.h 21 | 22 | Place the Adafruit_NFCShield_I2C library folder your 23 | /libraries/ folder. You may need to create the 24 | libraries subfolder if its your first library. Restart the IDE. 25 | -------------------------------------------------------------------------------- /libraries/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /libraries/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | TargetEmulation 4 | 5 | 6 | 7 | 8 | 9 | net.rim.ejde.internal.builder.BlackBerryPreprocessBuilder 10 | 11 | 12 | 13 | 14 | net.rim.ejde.internal.builder.BlackBerryResourcesBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | 25 | net.rim.ejde.BlackBerryPreProcessNature 26 | net.rim.ejde.BlackBerryProjectCoreNature 27 | org.eclipse.jdt.core.javanature 28 | 29 | 30 | -------------------------------------------------------------------------------- /libraries/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | #Fri Jun 22 00:02:13 EDT 2012 2 | eclipse.preferences.version=1 3 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.4 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore 12 | org.eclipse.jdt.core.compiler.source=1.3 13 | -------------------------------------------------------------------------------- /libraries/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/res/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/res/img/icon.png -------------------------------------------------------------------------------- /libraries/Adafruit_NeoPixel/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | sudo: false 3 | before_install: 4 | - source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh) 5 | script: 6 | - build_main_platforms 7 | - build_platform trinket 8 | notifications: 9 | email: 10 | on_success: change 11 | on_failure: change 12 | -------------------------------------------------------------------------------- /libraries/Adafruit_NeoPixel/README.md: -------------------------------------------------------------------------------- 1 | # Adafruit NeoPixel Library [![Build Status](https://travis-ci.org/adafruit/Adafruit_NeoPixel.svg?branch=master)](https://travis-ci.org/adafruit/Adafruit_NeoPixel) 2 | 3 | Arduino library for controlling single-wire-based LED pixels and strip such as the [Adafruit 60 LED/meter Digital LED strip][strip], the [Adafruit FLORA RGB Smart Pixel][flora], the [Adafruit Breadboard-friendly RGB Smart Pixel][pixel], the [Adafruit NeoPixel Stick][stick], and the [Adafruit NeoPixel Shield][shield]. 4 | 5 | After downloading, rename folder to 'Adafruit_NeoPixel' and install in Arduino Libraries folder. Restart Arduino IDE, then open File->Sketchbook->Library->Adafruit_NeoPixel->strandtest sketch. 6 | 7 | [flora]: http://adafruit.com/products/1060 8 | [strip]: http://adafruit.com/products/1138 9 | [pixel]: http://adafruit.com/products/1312 10 | [stick]: http://adafruit.com/products/1426 11 | [shield]: http://adafruit.com/products/1430 12 | -------------------------------------------------------------------------------- /libraries/Adafruit_NeoPixel/examples/buttoncycler/.esp8266.test.skip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Adafruit_NeoPixel/examples/buttoncycler/.esp8266.test.skip -------------------------------------------------------------------------------- /libraries/Adafruit_NeoPixel/examples/simple/.esp8266.test.skip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Adafruit_NeoPixel/examples/simple/.esp8266.test.skip -------------------------------------------------------------------------------- /libraries/Adafruit_NeoPixel/examples/strandtest/.esp8266.test.skip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Adafruit_NeoPixel/examples/strandtest/.esp8266.test.skip -------------------------------------------------------------------------------- /libraries/Adafruit_NeoPixel/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Adafruit_NeoPixel 3 | ####################################### 4 | # Class 5 | ####################################### 6 | 7 | Adafruit_NeoPixel KEYWORD1 8 | 9 | ####################################### 10 | # Methods and Functions 11 | ####################################### 12 | 13 | setPixelColor KEYWORD2 14 | setPin KEYWORD2 15 | setBrightness KEYWORD2 16 | numPixels KEYWORD2 17 | getPixelColor KEYWORD2 18 | Color KEYWORD2 19 | 20 | ####################################### 21 | # Constants 22 | ####################################### 23 | 24 | NEO_GRB LITERAL1 25 | NEO_COLMASK LITERAL1 26 | NEO_KHZ800 LITERAL1 27 | NEO_SPDMASK LITERAL1 28 | NEO_RGB LITERAL1 29 | NEO_KHZ400 LITERAL1 30 | -------------------------------------------------------------------------------- /libraries/Adafruit_NeoPixel/library.properties: -------------------------------------------------------------------------------- 1 | name=Adafruit NeoPixel 2 | version=1.0.4 3 | author=Adafruit 4 | maintainer=Adafruit 5 | sentence=Arduino library for controlling single-wire-based LED pixels and strip. 6 | paragraph=Arduino library for controlling single-wire-based LED pixels and strip. 7 | category=Display 8 | url=https://github.com/adafruit/Adafruit_NeoPixel 9 | architectures=* 10 | -------------------------------------------------------------------------------- /libraries/Adafruit_Thermal/ReadMe.txt: -------------------------------------------------------------------------------- 1 | This is an Arduino library for the Adafruit Thermal Printer. 2 | Pick one up at --> http://www.adafruit.com/products/597 3 | These printers use TTL serial to communicate, 2 pins are required. 4 | 5 | Full tutorial with wiring diagrams, images, etc. is available at 6 | http://www.ladyada.net/products/thermalprinter/ 7 | 8 | Before loading the example code, or even opening the Arduino software, 9 | place the Adafruit_Thermal folder in your Arduino library. 10 | 11 | ////ARDUINO LIBRARY LOCATION//// 12 | On your Mac:: In (home directory)/Documents/Arduino/Libraries 13 | On your PC:: My Documents\Arduino\libraries 14 | On your Linux box: (home directory)/sketchbook/libraries 15 | 16 | Adafruit invests time and resources providing this open source code. 17 | Please support Adafruit and open-source hardware by purchasing products 18 | from Adafruit! 19 | 20 | Written by Limor Fried/Ladyada for Adafruit Industries, based on Thermal 21 | library from bildr.org 22 | MIT license, all text above must be included in any redistribution. 23 | -------------------------------------------------------------------------------- /libraries/Adafruit_Thermal/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################################### 2 | # keywords.txt - keywords file for the Thermal library 3 | 4 | # Created by Adam Meyer of bildr Aug 10th 2011 5 | 6 | # Released as MIT license 7 | 8 | ####################################################### 9 | 10 | ####################################### 11 | # Datatypes (KEYWORD1) 12 | ####################################### 13 | 14 | Thermal KEYWORD1 15 | 16 | ####################################### 17 | # Methods and Functions (KEYWORD2) 18 | ####################################### 19 | 20 | test KEYWORD2 21 | print KEYWORD2 22 | print KEYWORD2 23 | println KEYWORD2 24 | println KEYWORD2 25 | printBarCode KEYWORD2 26 | printFancyBarCode KEYWORD2 27 | boldOn KEYWORD2 28 | boldOff KEYWORD2 29 | sleep KEYWORD2 30 | wake KEYWORD2 31 | setSize KEYWORD2 32 | setBarcodeHeight KEYWORD2 33 | feed KEYWORD2 34 | tab KEYWORD2 35 | justify KEYWORD2 36 | doubleHeightOn KEYWORD2 37 | doubleHeightOff KEYWORD2 38 | inverseOn KEYWORD2 39 | inverseOff KEYWORD2 40 | setDefault KEYWORD2 41 | 42 | 43 | 44 | 45 | 46 | ####################################### 47 | # Constants (LITERAL1) 48 | ####################################### -------------------------------------------------------------------------------- /libraries/Adafruit_Thermal/ruby/Gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | gem "rmagick" -------------------------------------------------------------------------------- /libraries/Adafruit_Thermal/ruby/Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: http://rubygems.org/ 3 | specs: 4 | rmagick (2.13.1) 5 | 6 | PLATFORMS 7 | ruby 8 | 9 | DEPENDENCIES 10 | rmagick 11 | -------------------------------------------------------------------------------- /libraries/Adafruit_Thermal/ruby/License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 bildr community 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /libraries/Bounce/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Bounce/.DS_Store -------------------------------------------------------------------------------- /libraries/Bounce/documentation.txt: -------------------------------------------------------------------------------- 1 | Bounce library for Arduino 2 | 3 | Version 1.6 4 | 5 | by Thomas Ouellet Fredericks 6 | with contributions from: 7 | Eric Lowry 8 | Jim Schimpf 9 | Tom Harkaway 10 | 11 | contact: mrtoftrash@gmail.com 12 | 13 | See the online documentation here: http://www.arduino.cc/playground/Code/Bounce 14 | -------------------------------------------------------------------------------- /libraries/Bounce/examples/bounce/bounce.pde: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // This code turns a led on/off through a debounced button 4 | // Build the circuit indicated here: http://arduino.cc/en/Tutorial/Button 5 | 6 | #define BUTTON 2 7 | #define LED 13 8 | 9 | // Instantiate a Bounce object with a 5 millisecond debounce time 10 | Bounce bouncer = Bounce( BUTTON,5 ); 11 | 12 | void setup() { 13 | pinMode(BUTTON,INPUT); 14 | pinMode(LED,OUTPUT); 15 | } 16 | 17 | void loop() { 18 | // Update the debouncer 19 | bouncer.update ( ); 20 | 21 | // Get the update value 22 | int value = bouncer.read(); 23 | 24 | // Turn on or off the LED 25 | if ( value == HIGH) { 26 | digitalWrite(LED, HIGH ); 27 | } else { 28 | digitalWrite(LED, LOW ); 29 | } 30 | 31 | } 32 | 33 | -------------------------------------------------------------------------------- /libraries/Bounce/examples/change/change.pde: -------------------------------------------------------------------------------- 1 | #include 2 | #define BUTTON 2 3 | #define LED 13 4 | 5 | int ledValue = LOW; 6 | 7 | // This example changes the state of the LED everytime the button is pushed 8 | // Build the circuit indicated here: http://arduino.cc/en/Tutorial/Button 9 | 10 | 11 | Bounce bouncer = Bounce( BUTTON, 5 ); 12 | 13 | void setup() { 14 | pinMode(BUTTON,INPUT); 15 | pinMode(LED,OUTPUT); 16 | } 17 | 18 | void loop() { 19 | 20 | if ( bouncer.update() ) { 21 | if ( bouncer.read() == HIGH) { 22 | if ( ledValue == LOW ) { 23 | ledValue = HIGH; 24 | } else { 25 | ledValue = LOW; 26 | } 27 | digitalWrite(LED,ledValue); 28 | } 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /libraries/Bounce/examples/rebounce/rebounce.pde: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // As long as the button is held down, the LED will blink 4 | // Build the circuit indicated here: http://arduino.cc/en/Tutorial/Button 5 | 6 | #define BUTTON 2 7 | #define LED 13 8 | 9 | // A variable to store the current LED state 10 | int ledState = LOW; 11 | 12 | // Instantiate a Bounce object with a 5 millisecond debounce time 13 | Bounce bouncer = Bounce( BUTTON,5 ); 14 | 15 | void setup() { 16 | pinMode(BUTTON,INPUT); 17 | pinMode(LED,OUTPUT); 18 | } 19 | 20 | void loop() { 21 | 22 | // Update and monitor a change of input 23 | if ( bouncer.update() ) { 24 | 25 | // Get the state of the button 26 | int value = bouncer.read(); 27 | 28 | // Toggle the LED if the button is held 29 | if ( value == HIGH) { 30 | // Make the button retrigger in 500 milliseconds 31 | bouncer.rebounce(500); 32 | if ( ledState == LOW ) { 33 | ledState = HIGH; 34 | } else { 35 | ledState = LOW; 36 | } 37 | } else { 38 | ledState = LOW; 39 | } 40 | 41 | digitalWrite(LED, ledState ); 42 | 43 | } 44 | 45 | 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /libraries/Bounce/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Debounce 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | Bounce KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | update KEYWORD2 16 | interval KEYWORD2 17 | read KEYWORD2 18 | write KEYWORD2 19 | rebounce KEYWORD2 20 | risingEdge KEYWORD2 21 | fallingEdge KEYWORD2 22 | 23 | ####################################### 24 | # Instances (KEYWORD2) 25 | ####################################### 26 | 27 | ####################################### 28 | # Constants (LITERAL1) 29 | ####################################### 30 | 31 | -------------------------------------------------------------------------------- /libraries/DHT/dht.h: -------------------------------------------------------------------------------- 1 | // 2 | // FILE: dht.h 3 | // VERSION: 0.1.04 4 | // PURPOSE: DHT Temperature & Humidity Sensor library for Arduino 5 | // 6 | // URL: http://arduino.cc/playground/Main/DHTLib 7 | // 8 | // HISTORY: 9 | // see dht.cpp file 10 | // 11 | 12 | #ifndef dht_h 13 | #define dht_h 14 | 15 | #if ARDUINO < 100 16 | #include 17 | #else 18 | #include 19 | #endif 20 | 21 | #define DHT_LIB_VERSION "0.1.04" 22 | 23 | #define DHTLIB_OK 0 24 | #define DHTLIB_ERROR_CHECKSUM -1 25 | #define DHTLIB_ERROR_TIMEOUT -2 26 | #define DHTLIB_INVALID_VALUE -999 27 | 28 | class dht 29 | { 30 | public: 31 | int read11(uint8_t pin); 32 | int read22(uint8_t pin); 33 | double humidity; 34 | double temperature; 35 | 36 | private: 37 | uint8_t bits[5]; // buffer to receive data 38 | int read(uint8_t pin); 39 | }; 40 | #endif 41 | // 42 | // END OF FILE 43 | // 44 | -------------------------------------------------------------------------------- /libraries/DHT22/DHT22.h: -------------------------------------------------------------------------------- 1 | #ifndef _DHT22_H_ 2 | #define _DHT22_H_ 3 | 4 | #include 5 | 6 | #define DHT22_ERROR_VALUE -99.5 7 | 8 | typedef enum 9 | { 10 | DHT_ERROR_NONE = 0, 11 | DHT_BUS_HUNG, 12 | DHT_ERROR_NOT_PRESENT, 13 | DHT_ERROR_ACK_TOO_LONG, 14 | DHT_ERROR_SYNC_TIMEOUT, 15 | DHT_ERROR_DATA_TIMEOUT, 16 | DHT_ERROR_CHECKSUM, 17 | DHT_ERROR_TOOQUICK 18 | } DHT22_ERROR_t; 19 | 20 | class DHT22 21 | { 22 | private: 23 | uint8_t _bitmask; 24 | volatile uint8_t *_baseReg; 25 | unsigned long _lastReadTime; 26 | float _lastHumidity; 27 | float _lastTemperature; 28 | 29 | public: 30 | DHT22(uint8_t pin); 31 | DHT22_ERROR_t readData(void); 32 | float getHumidity(); 33 | float getTemperatureC(); 34 | void clockReset(); 35 | }; 36 | 37 | #endif /*_DHT22_H_*/ 38 | -------------------------------------------------------------------------------- /libraries/DHT22/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For DHT22 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | DHT22 KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | readData KEYWORD2 16 | getHumidity KEYWORD2 17 | getTemperatureC KEYWORD2 18 | clockReset KEYWORD2 19 | 20 | ####################################### 21 | # Instances (KEYWORD2) 22 | ####################################### 23 | 24 | 25 | ####################################### 26 | # Constants (LITERAL1) 27 | ####################################### 28 | 29 | DHT_ERROR_NONE LITERAL1 30 | DHT_BUS_HUNG LITERAL1 31 | DHT_ERROR_NOT_PRESENT LITERAL1 32 | DHT_ERROR_ACK_TOO_LONG LITERAL1 33 | DHT_ERROR_SYNC_TIMEOUT LITERAL1 34 | DHT_ERROR_DATA_TIMEOUT LITERAL1 35 | DHT_ERROR_CHECKSUM LITERAL1 36 | DHT_ERROR_TOOQUICK LITERAL1 37 | -------------------------------------------------------------------------------- /libraries/Ethernet/README.adoc: -------------------------------------------------------------------------------- 1 | = Ethernet Library for Arduino = 2 | 3 | With the Arduino Ethernet Shield, this library allows an Arduino board to connect to the internet. 4 | 5 | For more information about this library please visit us at 6 | http://www.arduino.cc/en/Reference/Ethernet 7 | 8 | == License == 9 | 10 | Copyright (c) 2010 Arduino LLC. All right reserved. 11 | 12 | This library is free software; you can redistribute it and/or 13 | modify it under the terms of the GNU Lesser General Public 14 | License as published by the Free Software Foundation; either 15 | version 2.1 of the License, or (at your option) any later version. 16 | 17 | This library is distributed in the hope that it will be useful, 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 | Lesser General Public License for more details. 21 | 22 | You should have received a copy of the GNU Lesser General Public 23 | License along with this library; if not, write to the Free Software 24 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 | -------------------------------------------------------------------------------- /libraries/Ethernet/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Ethernet 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | Ethernet KEYWORD1 Ethernet 10 | EthernetClient KEYWORD1 EthernetClient 11 | EthernetServer KEYWORD1 EthernetServer 12 | IPAddress KEYWORD1 EthernetIPAddress 13 | 14 | ####################################### 15 | # Methods and Functions (KEYWORD2) 16 | ####################################### 17 | 18 | status KEYWORD2 19 | connect KEYWORD2 20 | write KEYWORD2 21 | available KEYWORD2 22 | read KEYWORD2 23 | peek KEYWORD2 24 | flush KEYWORD2 25 | stop KEYWORD2 26 | connected KEYWORD2 27 | begin KEYWORD2 28 | beginPacket KEYWORD2 29 | endPacket KEYWORD2 30 | parsePacket KEYWORD2 31 | remoteIP KEYWORD2 32 | remotePort KEYWORD2 33 | getSocketNumber KEYWORD2 34 | localIP KEYWORD2 35 | maintain KEYWORD2 36 | 37 | ####################################### 38 | # Constants (LITERAL1) 39 | ####################################### 40 | 41 | -------------------------------------------------------------------------------- /libraries/Ethernet/library.properties: -------------------------------------------------------------------------------- 1 | name=Ethernet 2 | version=1.1.1 3 | author=Arduino 4 | maintainer=Arduino 5 | sentence=Enables network connection (local and Internet) using the Arduino Ethernet board or shield. For all Arduino boards. 6 | paragraph=With this library you can use the Arduino Ethernet (shield or board) to connect to Internet. The library provides both Client and server functionalities. The library permits you to connect to a local network also with DHCP and to resolve DNS. 7 | category=Communication 8 | url=http://www.arduino.cc/en/Reference/Ethernet 9 | architectures=* 10 | -------------------------------------------------------------------------------- /libraries/Ethernet/src/EthernetServer.h: -------------------------------------------------------------------------------- 1 | #ifndef ethernetserver_h 2 | #define ethernetserver_h 3 | 4 | #include "Server.h" 5 | 6 | class EthernetClient; 7 | 8 | class EthernetServer : 9 | public Server { 10 | private: 11 | uint16_t _port; 12 | void accept(); 13 | public: 14 | EthernetServer(uint16_t); 15 | EthernetClient available(); 16 | virtual void begin(); 17 | virtual size_t write(uint8_t); 18 | virtual size_t write(const uint8_t *buf, size_t size); 19 | using Print::write; 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /libraries/Ethernet/src/utility/util.h: -------------------------------------------------------------------------------- 1 | #ifndef UTIL_H 2 | #define UTIL_H 3 | 4 | #define htons(x) ( ((x)<< 8 & 0xFF00) | \ 5 | ((x)>> 8 & 0x00FF) ) 6 | #define ntohs(x) htons(x) 7 | 8 | #define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \ 9 | ((x)<< 8 & 0x00FF0000UL) | \ 10 | ((x)>> 8 & 0x0000FF00UL) | \ 11 | ((x)>>24 & 0x000000FFUL) ) 12 | #define ntohl(x) htonl(x) 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/1.Basics/a_Hello/a_Hello.ino: -------------------------------------------------------------------------------- 1 | //imports the SPI library (needed to communicate with Gamebuino's screen) 2 | #include 3 | //imports the Gamebuino library 4 | #include 5 | //creates a Gamebuino object named gb 6 | Gamebuino gb; 7 | 8 | // the setup routine runs once when Gamebuino starts up 9 | void setup(){ 10 | // initialize the Gamebuino object 11 | gb.begin(); 12 | //display the main menu: 13 | gb.titleScreen(F("My first game")); 14 | gb.popup(F("Let's go!"), 100); 15 | } 16 | 17 | // the loop routine runs over and over again forever 18 | void loop(){ 19 | //updates the gamebuino (the display, the sound, the auto backlight... everything) 20 | //returns true when it's time to render a new frame (20 times/second) 21 | if(gb.update()){ 22 | //prints Hello World! on the screen 23 | gb.display.println(F("Hello World!")); 24 | //declare a variable named count of type integer : 25 | int count; 26 | //get the number of frames rendered and assign it to the "count" variable 27 | count = gb.frameCount; 28 | //prints the variable "count" 29 | gb.display.println(count); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/2.Intermediate/CirclesPhysics/CirclesPhysics.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | typedef struct{ 6 | float x, y, r, vx, vy; 7 | } Circle; 8 | 9 | void setup() 10 | { 11 | gb.begin(); 12 | initGame(); 13 | } 14 | 15 | void loop() 16 | { 17 | if(gb.update()){ 18 | //pause the game if C is pressed 19 | if(gb.buttons.pressed(BTN_C)){ 20 | initGame(); 21 | } 22 | updateCircles(); 23 | drawCircles(); 24 | 25 | } 26 | } 27 | 28 | void initGame(){ 29 | gb.titleScreen(F("Circle\ncollision\nphysics")); 30 | gb.pickRandomSeed(); //pick a different random seed each time for games to be different 31 | gb.battery.show = false; //hide the battery indicator 32 | initCircles(); 33 | } 34 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/2.Intermediate/Physics/Physics.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | //define de Box structure for obstacles 6 | typedef struct { 7 | byte w; 8 | byte x; 9 | byte h; 10 | byte y; 11 | } Box; 12 | 13 | //define de MovingBox structure for player 14 | typedef struct { 15 | byte w; 16 | float x; 17 | float xv; 18 | byte h; 19 | float y; 20 | float yv; 21 | } MovingBox; 22 | 23 | void setup() 24 | { 25 | gb.begin(); 26 | initGame(); 27 | } 28 | 29 | void loop(){ 30 | if(gb.update()){ 31 | //pause the game if C is pressed 32 | if(gb.buttons.pressed(BTN_C)){ 33 | initGame(); 34 | } 35 | 36 | updatePlayer(); 37 | updateObstacles(); 38 | 39 | drawObstacles(); 40 | drawPlayer(); 41 | //gb.display.print(F("CPU:")); 42 | //gb.display.print(gb.getCpuLoad()); 43 | //gb.display.print(F("%")); 44 | 45 | } 46 | } 47 | 48 | void initGame(){ 49 | gb.titleScreen(F(" PHYSICS DEMO\n\nControls:\n \25 jump\n \26 crouch ")); 50 | gb.pickRandomSeed(); //pick a different random seed each time for games to be different 51 | gb.battery.show = false; //hide the battery indicator 52 | 53 | initObstacles(); 54 | initPlayer(); 55 | } 56 | 57 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/grass.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/grass.bmp -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/road_straight.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/road_straight.bmp -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/road_turn.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/road_turn.bmp -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/rocks.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/rocks.bmp -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/tileset.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/tileset.bmp -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/3.Advanced/PongMulti/updateDisplay.ino: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////// UPDATE DISPLAY 2 | void updateDisplay(){ 3 | //gb.display.print(gb.getCpuLoad()); 4 | //draw the score 5 | gb.display.fontSize = 2; 6 | gb.display.cursorX = 15; 7 | gb.display.cursorY = 16; 8 | gb.display.print(player_score); 9 | gb.display.cursorX = 57; 10 | gb.display.cursorY = 16; 11 | gb.display.print(oponent_score); 12 | gb.display.fontSize = 1; 13 | //draw the ball 14 | gb.display.fillRect(ball_x, ball_y, ball_size, ball_size); 15 | //draw the player 16 | gb.display.fillRect(player_x, player_y, player_w, player_h); 17 | //draw the oponent 18 | gb.display.fillRect(oponent_x,oponent_y, oponent_w, oponent_h); 19 | } 20 | 21 | 22 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/4.Utilities/Loader/bitmaps/floppy8x8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/4.Utilities/Loader/bitmaps/floppy8x8.png -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/4.Utilities/Loader/bitmaps/settings_logo.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/4.Utilities/Loader/bitmaps/settings_logo.bmp -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/4.Utilities/Loader/bitmaps/settings_slide0.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/4.Utilities/Loader/bitmaps/settings_slide0.bmp -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/4.Utilities/Settings/restoreSettings.ino: -------------------------------------------------------------------------------- 1 | void restoreSettings(){ 2 | token = 0xC001; 3 | strcpy(userName,"John Smith"); 4 | contrast = SCR_CONTRAST ; 5 | backlightMin = BACKLIGHT_MIN; 6 | backlightMax = BACKLIGHT_MAX; 7 | lightMin = AMBIENTLIGHT_MIN; 8 | lightMax = AMBIENTLIGHT_MAX; 9 | volumeMax = VOLUME_GLOBAL_MAX; 10 | volumeDefault = VOLUME_GLOBAL_MAX; 11 | startMenuTimer = START_MENU_TIMER; 12 | batteryCritic = BAT_LVL_CRITIC; 13 | batteryLow = BAT_LVL_LOW; 14 | batteryMed = BAT_LVL_MED; 15 | batteryFull = BAT_LVL_FULL; 16 | gb.popup(F("Defaults restored."), 40); 17 | } 18 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/4.Utilities/eraseSettings/eraseSettings.ino: -------------------------------------------------------------------------------- 1 | #define write_flash_page (*((void(*)(const char * page, unsigned char * buffer))(0x7ffa/2))) 2 | #define SETTINGS_PAGE ((const char *)(0x7000-128)) 3 | 4 | byte buffer[128]; 5 | 6 | void setup() 7 | { 8 | Serial.begin(9600); 9 | Serial.print(F("Erasing settings...")); 10 | memset(buffer, 0, 128); 11 | write_flash_page (SETTINGS_PAGE, buffer); 12 | Serial.print(F(" done.")); 13 | while(1); 14 | } 15 | 16 | void loop() 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/buttons/timeHeld/timeHeld.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | void setup(){ 6 | gb.begin(); 7 | gb.titleScreen(F("timeHeld example")); 8 | } 9 | 10 | void loop(){ 11 | if(gb.update()){ 12 | gb.display.print("gb.buttons.timeHeld\n\n"); 13 | 14 | gb.display.print("BTN_A:"); 15 | gb.display.println(gb.buttons.timeHeld(BTN_A)); 16 | 17 | gb.display.print("BTN_B:"); 18 | gb.display.println(gb.buttons.timeHeld(BTN_B)); 19 | 20 | if(gb.buttons.pressed(BTN_C)){ 21 | gb.titleScreen(F("timeHeld example")); 22 | } 23 | } 24 | } 25 | 26 | 27 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/core/begin/begin.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | static unsigned char PROGMEM logo[]= 6 | { 7 | 8,8, 8 | B00000000, 9 | B00100100, 10 | B00011000, 11 | B01111110, 12 | B00111100, 13 | B01111110, 14 | B00111100, 15 | B00000000, 16 | }; 17 | 18 | void setup(){ 19 | // initialize the Gamebuino object 20 | gb.begin(); 21 | gb.titleScreen(F("Example game"), logo); 22 | } 23 | 24 | void loop(){ 25 | if(gb.update()){ 26 | gb.display.println("Hello world"); 27 | if(gb.buttons.pressed(BTN_C)){ 28 | gb.titleScreen(F("Example game"), logo); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/core/frameCount/frameCount.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | void setup(){ 6 | gb.begin(); 7 | gb.titleScreen(F("Count example")); 8 | } 9 | 10 | void loop(){ 11 | if(gb.update()){ 12 | int count = gb.frameCount; 13 | gb.display.println(count); 14 | 15 | if( (count / 8) % 2 ){ //true half of the time on 8 frames 16 | gb.display.println(F("BLINK")); 17 | } 18 | 19 | if(gb.buttons.pressed(BTN_C)){ 20 | gb.titleScreen(F("Count example")); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/core/getDefaultName/getDefaultName.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | char name[11]; 6 | 7 | void setup(){ 8 | gb.begin(); 9 | gb.titleScreen(F("Name example")); 10 | gb.getDefaultName(name); 11 | } 12 | 13 | void loop(){ 14 | if(gb.update()){ 15 | gb.display.print("Hello "); 16 | gb.display.print(name); 17 | } 18 | 19 | if(gb.buttons.pressed(BTN_C)){ 20 | gb.titleScreen(F("Name example")); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/core/update/update.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | void setup(){ 6 | gb.begin(); 7 | gb.titleScreen(F("Update example")); 8 | } 9 | 10 | void loop(){ 11 | while(1){ //loops forever 12 | if(gb.update()){ //update everything 13 | 14 | //put your game here. I will run at a fixed frequency (20 times per second by default) 15 | gb.display.println(F("First loop")); 16 | gb.display.println(F("Press \25 to continue")); 17 | 18 | if(gb.buttons.pressed(BTN_A)) //break out of the loop if C is pressed 19 | break; 20 | 21 | if(gb.buttons.pressed(BTN_C)){ 22 | gb.titleScreen(F("Update example")); 23 | } 24 | } 25 | } 26 | 27 | while(1){ //loops forever 28 | if(gb.update()){ //update everything 29 | 30 | //put your game here. I will run at a fixed frequency (20 times per second by default) 31 | gb.display.println(F("Second loop")); 32 | gb.display.println(F("Press \25 to continue")); 33 | 34 | if(gb.buttons.pressed(BTN_A)) //break out of the loop if C is pressed 35 | break; 36 | 37 | if(gb.buttons.pressed(BTN_C)){ 38 | gb.titleScreen(F("Update example")); 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/display/bitmap/pointerBitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/Gamebuino/examples/5.Reference/display/bitmap/pointerBitmap.png -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/display/displayBuffer/displayBuffer.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | uint8_t *displayBuffer; //pointer to store the buffer's address 6 | byte i = 0; 7 | 8 | void setup(){ 9 | gb.begin(); 10 | gb.titleScreen(F("Direct display\nbuffer access")); 11 | //get the buffer's address and assign it to displayBuffer 12 | displayBuffer = gb.display.getBuffer(); 13 | } 14 | 15 | void loop(){ 16 | if(gb.update()){ 17 | //directly access the display's buffer value 18 | displayBuffer[i] = BLACK; 19 | i++; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/display/setFont/setFont.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | // these two default fonts are already defined in the Gamebuino library 6 | // the "extern" modifier is used to be able to use a variable declared in another file 7 | extern const byte font3x3[]; //a really tiny font 8 | extern const byte font3x5[]; //a small but efficient font (default) 9 | extern const byte font5x7[]; //a large, comfy font 10 | 11 | void setup(){ 12 | // initialize the Gamebuino object 13 | gb.begin(); 14 | gb.display.setFont(font5x7); 15 | gb.titleScreen(F("Font size")); 16 | } 17 | 18 | void loop(){ 19 | if(gb.update()){ 20 | gb.display.setFont(font3x3); 21 | gb.display.println(F("The quick brown fox\njumps over the doge")); 22 | gb.display.setFont(font3x5); 23 | gb.display.print("3x5 font\n"); 24 | gb.display.fontSize = 2; 25 | gb.display.print("3x5 font\n"); 26 | gb.display.fontSize = 1; 27 | gb.display.setFont(font5x7); 28 | gb.display.print("5x7 font\n"); 29 | gb.display.fontSize = 2; 30 | gb.display.print("5x7 font\n"); 31 | gb.display.fontSize = 1; 32 | 33 | if(gb.buttons.pressed(BTN_C)){ 34 | gb.titleScreen(F("Font size")); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/interface/keyboard/keyboard.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | char text[13] = "Default text"; 6 | 7 | void setup(){ 8 | gb.begin(); 9 | gb.titleScreen(F("Keyword example")); 10 | gb.keyboard(text, 13); 11 | } 12 | 13 | void loop(){ 14 | if(gb.update()){ 15 | gb.display.println(F("You wrote:")); 16 | gb.display.println(text); 17 | 18 | if(gb.buttons.pressed(BTN_C)){ 19 | gb.titleScreen(F("Keyword example")); 20 | gb.keyboard(text, 13); 21 | } 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /libraries/Gamebuino/examples/5.Reference/interface/popup/popup.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | void setup(){ 6 | gb.begin(); 7 | gb.titleScreen(F("Popup example")); 8 | } 9 | 10 | void loop(){ 11 | if(gb.update()){ 12 | gb.display.println("Press \25 \26 or \27\nto see a popup"); 13 | if(gb.buttons.pressed(BTN_A)) 14 | gb.popup(F("A pressed"),5); 15 | if(gb.buttons.pressed(BTN_B)) 16 | gb.popup(F("B pressed"),5); 17 | if(gb.buttons.pressed(BTN_C)) 18 | gb.popup(F("C pressed"),5); 19 | } 20 | 21 | if(gb.buttons.pressed(BTN_C)){ 22 | gb.titleScreen(F("Popup example")); 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /libraries/Gamebuino/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Gamebuino", 3 | "description": "An Arduino based game console", 4 | "keywords": "game, console", 5 | "include": "libraries/Gamebuino", 6 | "authors": { 7 | "name": "Aurelien Rodot", 8 | "url": "https://github.com/Rodot/" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/Rodot/Gamebuino.git" 13 | }, 14 | "version": "0.3", 15 | "examples": [ 16 | "libraries/Gamebuino/examples/*/*/*.ino" 17 | ], 18 | "framework": "arduino", 19 | "platforms": "atmelavr" 20 | } 21 | -------------------------------------------------------------------------------- /libraries/Gamebuino/library.properties: -------------------------------------------------------------------------------- 1 | name=Gamebuino 2 | version=0.4 3 | author=Aurelien Rodot 4 | maintainer=Aurelien Rodot 5 | sentence=Create your own games on a fun and retro console. 6 | paragraph=See more on http://gamebuino.com 7 | category=Device Control 8 | url=https://github.com/Rodot/Gamebuino 9 | architectures=avr 10 | includes=Gamebuino.h 11 | -------------------------------------------------------------------------------- /libraries/Hover/keywords.txt: -------------------------------------------------------------------------------- 1 | Hover KEYWORD1 2 | begin KEYWORD2 3 | getEvent KEYWORD2 4 | getStatus KEYWORD2 5 | setRelease KEYWORD2 6 | getEventString KEYWORD2 -------------------------------------------------------------------------------- /libraries/I2cMaster/examples/i2cScopeTest/i2cScopeTest.pde: -------------------------------------------------------------------------------- 1 | // this sketch is for tweaking soft i2c signals 2 | 3 | #include 4 | 5 | #define SCL_PIN 7 6 | #define SDA_PIN 8 7 | 8 | SoftI2cMaster i2c(SDA_PIN, SCL_PIN); 9 | 10 | // also test base class idea 11 | I2cMasterBase *bus; 12 | 13 | uint8_t mode; 14 | //------------------------------------------------------------------------------ 15 | void setup(void) { 16 | Serial.begin(9600); 17 | 18 | // convert softI2cMaster to TwoWireBase to test base class idea 19 | bus = &i2c; 20 | 21 | Serial.println("enter 0 for write, any other for read"); 22 | while (!Serial.available()); 23 | mode = Serial.read(); 24 | if (mode == '0') { 25 | Serial.println("Write Mode"); 26 | } else { 27 | Serial.println("Read Mode"); 28 | } 29 | } 30 | //------------------------------------------------------------------------------ 31 | void loop(void) { 32 | if (mode == '0') { 33 | bus->write(0X55); 34 | } else { 35 | bus->read(0); 36 | } 37 | delay(1); 38 | } 39 | -------------------------------------------------------------------------------- /libraries/LPD8806/README.md: -------------------------------------------------------------------------------- 1 | # Arduino library for LPD8806 # 2 | This Library was written for the LPD8806 PWM LED driver chips, strips and pixels. 3 | But the LPD8803/LPD8809 will probably work too. 4 | 5 | ## Where to Buy? ## 6 | Pick some up at [Adafruit Industries](http://www.adafruit.com/products/306) 7 | 8 | ## Download ## 9 | Click the Downloads Tab in the Tabbar above. 10 | Or follow [this](https://github.com/adafruit/LPD8806/zipball/master) link 11 | 12 | ## Installation ## 13 | * Uncompress the Downloaded Library 14 | * Rename the uncompressed folder to LPD8806 15 | * Check that the LPD8806 folder contains LPD8806.cpp and LPD8806.h 16 | * Place the LPD8806 library folder your /libraries/ folder, 17 | if the libraries folder does not exist - create it first! 18 | * Restart the IDE -------------------------------------------------------------------------------- /libraries/LPD8806/library.properties: -------------------------------------------------------------------------------- 1 | name=LPD8806 2 | version=1.0.0 3 | author=Adafruit 4 | maintainer=Adafruit 5 | sentence=Arduino library for LED strips and pixels using LPD8806 (and probably LPD8803/LPD8809) 6 | paragraph=Arduino library for LED strips and pixels using LPD8806 (and probably LPD8803/LPD8809) 7 | category=Display 8 | url=https://github.com/adafruit/LPD8806 9 | architectures=* 10 | -------------------------------------------------------------------------------- /libraries/LedControl/LICENSE: -------------------------------------------------------------------------------- 1 | LedControl.h - A library for controling Leds with a MAX7219/MAX7221 2 | Copyright (c) 2007-2015 Eberhard Fahle 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | This permission notice shall be included in all copies or 14 | substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /libraries/LedControl/README.md: -------------------------------------------------------------------------------- 1 | LedControl 2 | ========== 3 | LedControl is an [Arduino](http://arduino.cc) library for MAX7219 and MAX7221 Led display drivers. 4 | The code also works with the [Teensy (3.1)](https://www.pjrc.com/teensy/) 5 | 6 | Documentation 7 | ------------- 8 | Documentation for the library is on the [Github Project Pages](http://wayoda.github.io/LedControl/) 9 | 10 | Download 11 | -------- 12 | The lastest binary version of the Library is always available from the 13 | [LedControl Release Page](https://github.com/wayoda/LedControl/releases) 14 | 15 | 16 | Install 17 | ------- 18 | The library can be installed using the [standard Arduino library install procedure](http://arduino.cc/en/Guide/Libraries#.UwxndHX5PtY) 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /libraries/LedControl/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For LedControl 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | LedControl KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | shutdown KEYWORD2 16 | setScanLimit KEYWORD2 17 | setIntensity KEYWORD2 18 | clearDisplay KEYWORD2 19 | setLed KEYWORD2 20 | setRow KEYWORD2 21 | setColumn KEYWORD2 22 | setDigit KEYWORD2 23 | setChar KEYWORD2 24 | 25 | ####################################### 26 | # Constants (LITERAL1) 27 | ####################################### 28 | 29 | -------------------------------------------------------------------------------- /libraries/LedControl/library.properties: -------------------------------------------------------------------------------- 1 | name=LedControl 2 | version=1.0.6 3 | author=Eberhard Fahle 4 | maintainer=Eberhard Fahle 5 | sentence=A library for the MAX7219 and the MAX7221 Led display drivers. 6 | paragraph=The library supports multiple daisychained drivers and supports Led-Matrix displays as well as 7-Segment displays. 7 | category=Display 8 | url=http://wayoda.github.io/LedControl/ 9 | architectures=* 10 | 11 | -------------------------------------------------------------------------------- /libraries/OneWire/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For OneWire 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | OneWire KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | reset KEYWORD2 16 | write_bit KEYWORD2 17 | read_bit KEYWORD2 18 | write KEYWORD2 19 | write_bytes KEYWORD2 20 | read KEYWORD2 21 | read_bytes KEYWORD2 22 | select KEYWORD2 23 | skip KEYWORD2 24 | depower KEYWORD2 25 | reset_search KEYWORD2 26 | search KEYWORD2 27 | crc8 KEYWORD2 28 | crc16 KEYWORD2 29 | check_crc16 KEYWORD2 30 | 31 | ####################################### 32 | # Instances (KEYWORD2) 33 | ####################################### 34 | 35 | 36 | ####################################### 37 | # Constants (LITERAL1) 38 | ####################################### 39 | -------------------------------------------------------------------------------- /libraries/OneWire/library.properties: -------------------------------------------------------------------------------- 1 | name=OneWire 2 | version=2.3.2 3 | author=Jim Studt, Tom Pollard, Robin James, Glenn Trewitt, Jason Dangel, Guillermo Lovato, Paul Stoffregen, Scott Roberts, Bertrik Sikken, Mark Tillotson, Ken Butcher, Roger Clark, Love Nystrom 4 | maintainer=Paul Stoffregen 5 | sentence=Access 1-wire temperature sensors, memory and other chips. 6 | paragraph= 7 | category=Communication 8 | url=http://www.pjrc.com/teensy/td_libs_OneWire.html 9 | architectures=* 10 | 11 | -------------------------------------------------------------------------------- /libraries/PiccoloLib/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/PiccoloLib/.DS_Store -------------------------------------------------------------------------------- /libraries/PiccoloLib/README.md: -------------------------------------------------------------------------------- 1 | 2 | PiccoloLib v0.81 - Library for controlling Piccolo the tiny CNC-bot. 3 | Piccolo.cc 4 | Created by Diatom Studio, October 10, 2013. 5 | Released into the public domain. 6 | 7 | ###Changes: 8 | 0.82 9 | 10 | - Fixing bugs in examples. 11 | - Removed incompatible examples. 12 | 13 | 0.81 14 | 15 | - Minor restructuring of comments. 16 | - Added bezier(y,z) function 17 | - Commented out unused Piccolo Axis functions.s 18 | 19 | 0.8 20 | 21 | - Major restructuring of code. 22 | - Added Axis objects to store and calculate Axis positions. 23 | 24 | 0.21 25 | 26 | - Reverted BeginShape and EndShape back to BeginDraw and EndDraw to bring them in line with processing.org 27 | - Changed received coordinates from human readable chars to signed 32 bit ints backed into 4 bytes. This make our ranges larger, supports negative numbers and we send less data. 28 | 29 | 30 | 0.2 31 | - 32 | - Start of change tracking. 33 | 34 | -------------------------------------------------------------------------------- /libraries/PiccoloLib/examples/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/PiccoloLib/examples/.DS_Store -------------------------------------------------------------------------------- /libraries/PiccoloLib/examples/spiral/spiral.ino: -------------------------------------------------------------------------------- 1 | /* 2 | Spiral - PiccoloLib Example. 3 | Piccolo.cc 4 | Created by Diatom Studio, October 10, 2013. 5 | Released into the public domain. 6 | 7 | This examples causes Piccolo to draw spiral shapes. 8 | */ 9 | 10 | #include //Needed in Piccolo Lib 11 | #include //include the Piccolo Lib 12 | PiccoloLib piccolo; //Make a instance of the Piccolo library for controlling Piccolo 13 | 14 | float maxR = piccolo.X.getBedSize()/2.0; //Spiral radius, reach to end of Piccolo draw area. 15 | float minR = 1; //Min spiral radius. 16 | 17 | void setup(){ 18 | piccolo.setup(); //Setup Piccolo 19 | piccolo.home(); //Tell Piccolo to goto it's home position. 20 | drawSpiral(); //Draw a spiral. 21 | } 22 | 23 | void drawSpiral(){ 24 | float spacing = maxR/20; //Distance between loops. 25 | piccolo.beginShape(); 26 | for(float r = maxR; r > minR; r -= spacing) { 27 | for(float a=TWO_PI; a>0; a-= 0.01) { 28 | piccolo.vertex(sin(a)*r,cos(a)*r); 29 | } 30 | } 31 | piccolo.endShape(); 32 | } 33 | 34 | void loop(){ 35 | } 36 | -------------------------------------------------------------------------------- /libraries/RF24/README.md: -------------------------------------------------------------------------------- 1 | 2 | **See http://tmrh20.github.io/RF24 for all documentation** -------------------------------------------------------------------------------- /libraries/RF24/RPi/pyRF24/readme.md: -------------------------------------------------------------------------------- 1 | Python Wrapper for RF24 2 | See http://tmrh20.github.io/RF24 for more information 3 | -------------------------------------------------------------------------------- /libraries/RF24/RPi/pyRF24/setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from distutils.core import setup, Extension 4 | import sys 5 | 6 | if sys.version_info >= (3,): 7 | BOOST_LIB = 'boost_python3' 8 | else: 9 | BOOST_LIB = 'boost_python' 10 | 11 | module_RF24 = Extension('RF24', 12 | libraries = ['rf24-bcm', BOOST_LIB], 13 | sources = ['pyRF24.cpp']) 14 | 15 | setup(name='RF24', 16 | version='1.1', 17 | ext_modules=[module_RF24] 18 | ) 19 | -------------------------------------------------------------------------------- /libraries/RF24/RPi/readme.md: -------------------------------------------------------------------------------- 1 | Python Wrapper for RF24 2 | See http://tmrh20.github.io/RF24 for more information 3 | -------------------------------------------------------------------------------- /libraries/RF24/examples/Usage/readme.md: -------------------------------------------------------------------------------- 1 | Note: These examples may have not been maintained with library updates, and are provided as-is for reference purposes. -------------------------------------------------------------------------------- /libraries/RF24/examples/scanner/output/core.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/RF24/examples/scanner/output/core.a -------------------------------------------------------------------------------- /libraries/RF24/examples/scanner/output/scanner.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/RF24/examples/scanner/output/scanner.elf -------------------------------------------------------------------------------- /libraries/RF24/examples_RPi/extra/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################# 2 | # 3 | # Makefile for librf24 examples on Raspberry Pi 4 | # 5 | # License: GPL (General Public License) 6 | # Author: gnulnulf 7 | # Date: 2013/02/07 (version 1.0) 8 | # 9 | # Description: 10 | # ------------ 11 | # use make all and make install to install the examples 12 | # You can change the install directory by editing the prefix line 13 | # 14 | prefix := /usr/local 15 | 16 | ARCH=armv6zk 17 | ifeq "$(shell uname -m)" "armv7l" 18 | ARCH=armv7-a 19 | endif 20 | 21 | # The recommended compiler flags for the Raspberry Pi 22 | CCFLAGS=-Ofast -mfpu=vfp -mfloat-abi=hard -march=$(ARCH) -mtune=arm1176jzf-s 23 | #CCFLAGS= 24 | 25 | # define all programs 26 | PROGRAMS = rpi-hub scanner 27 | 28 | SOURCES = ${PROGRAMS:=.cpp} 29 | 30 | all: ${PROGRAMS} 31 | 32 | ${PROGRAMS}: ${SOURCES} 33 | g++ ${CCFLAGS} -Wall -I../ -lrf24-bcm $@.cpp -o $@ 34 | 35 | clean: 36 | rm -rf $(PROGRAMS) 37 | 38 | install: all 39 | test -d $(prefix) || mkdir $(prefix) 40 | test -d $(prefix)/bin || mkdir $(prefix)/bin 41 | for prog in $(PROGRAMS); do \ 42 | install -m 0755 $$prog $(prefix)/bin; \ 43 | done 44 | 45 | .PHONY: install 46 | -------------------------------------------------------------------------------- /libraries/RF24/examples_RPi/readme.md: -------------------------------------------------------------------------------- 1 | Note: These examples were originally designed for RPi, but should work on any supported Linux platform, with the proper pin configuration. 2 | 3 | See http://tmrh20.github.io/RF24 for more information -------------------------------------------------------------------------------- /libraries/RF24/keywords.txt: -------------------------------------------------------------------------------- 1 | RF24 KEYWORD1 2 | begin KEYWORD2 3 | setChannel KEYWORD2 4 | setPayloadSize KEYWORD2 5 | getPayloadSize KEYWORD2 6 | print_details KEYWORD2 7 | startListening KEYWORD2 8 | stopListening KEYWORD2 9 | write KEYWORD2 10 | writeFast KEYWORD2 11 | writeBlocking KEYWORD2 12 | txStandBy KEYWORD2 13 | available KEYWORD2 14 | read KEYWORD2 15 | openWritingPipe KEYWORD2 16 | openReadingPipe KEYWORD2 -------------------------------------------------------------------------------- /libraries/RF24/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RF24", 3 | "keywords": "rf, radio, wireless, spi", 4 | "description": "Optimized High Speed Driver for nRF24L01(+) 2.4GHz Wireless Transceiver", 5 | "repository": 6 | { 7 | "type": "git", 8 | "url": "https://github.com/TMRh20/RF24.git" 9 | }, 10 | "include": [ 11 | "*.h", 12 | "*.c", 13 | "*.cpp", 14 | "arch/ATTiny/*", 15 | "arch/Due/*", 16 | "arch/Teensy/*", 17 | "examples/*/*.ino" 18 | ], 19 | "frameworks": "arduino", 20 | "platforms": [ 21 | "atmelavr", 22 | "atmelsam", 23 | "teensy" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /libraries/RF24/library.properties: -------------------------------------------------------------------------------- 1 | name=RF24 2 | version=1.1.6 3 | author=TMRh20 4 | maintainer=TMRh20 5 | sentence=A library for NRF24L01(+) communication. 6 | paragraph=Optimized library for nRF24L01(+) that is simple to use for beginners, but yet offers a lot for advanced users. It also has a lot of good examples how to use the library. 7 | category=Communication 8 | url=http://tmrh20.github.io/RF24/ 9 | architectures=* 10 | -------------------------------------------------------------------------------- /libraries/RF24/tests/README: -------------------------------------------------------------------------------- 1 | The sketches in this directory are intended to be checkin tests. 2 | No code should be pushed to github without these tests passing. 3 | 4 | See "runtests.sh" script inside each sketch dir. This script is fully compatible with 5 | git bisest. 6 | 7 | Note that this requires python and py-serial 8 | -------------------------------------------------------------------------------- /libraries/RF24/tests/native/printf.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 James Coliz, Jr. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | version 2 as published by the Free Software Foundation. 7 | */ 8 | 9 | /** 10 | * @file printf.h 11 | * 12 | * Setup necessary to direct stdout to the Arduino Serial library, which 13 | * enables 'printf' 14 | */ 15 | 16 | #ifndef __PRINTF_H__ 17 | #define __PRINTF_H__ 18 | 19 | #include "WProgram.h" 20 | 21 | int serial_putc( char c, FILE * ) 22 | { 23 | Serial.write( c ); 24 | 25 | return c; 26 | } 27 | 28 | void printf_begin(void) 29 | { 30 | fdevopen( &serial_putc, 0 ); 31 | } 32 | 33 | #endif // __PRINTF_H__ 34 | -------------------------------------------------------------------------------- /libraries/RF24/tests/pingpair_blocking/printf.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 J. Coliz 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | version 2 as published by the Free Software Foundation. 7 | */ 8 | 9 | /** 10 | * @file printf.h 11 | * 12 | * Setup necessary to direct stdout to the Arduino Serial library, which 13 | * enables 'printf' 14 | */ 15 | 16 | #ifndef __PRINTF_H__ 17 | #define __PRINTF_H__ 18 | 19 | #ifdef ARDUINO 20 | 21 | int serial_putc( char c, FILE * ) 22 | { 23 | Serial.write( c ); 24 | 25 | return c; 26 | } 27 | 28 | void printf_begin(void) 29 | { 30 | fdevopen( &serial_putc, 0 ); 31 | } 32 | 33 | #else 34 | #error This example is only for use on Arduino. 35 | #endif // ARDUINO 36 | 37 | #endif // __PRINTF_H__ 38 | -------------------------------------------------------------------------------- /libraries/RF24/tests/pingpair_blocking/runtest.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | import sys,serial 4 | 5 | def read_until(token): 6 | while 1: 7 | line = ser.readline(None) 8 | sys.stdout.write(line) 9 | 10 | if (line.startswith(token)): 11 | break 12 | return line 13 | 14 | 15 | ser = serial.Serial(sys.argv[1], 57600, timeout=5, dsrdtr=False, rtscts=False) 16 | 17 | read_until("+READY") 18 | ser.write(sys.argv[2]) 19 | 20 | line = read_until("+OK") 21 | ser.close() 22 | if (line.find("PASS") != -1): 23 | sys.exit(0) 24 | else: 25 | sys.exit(1) 26 | -------------------------------------------------------------------------------- /libraries/RF24/tests/pingpair_blocking/runtests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Connect u0 to receiver, u1 to sender 4 | 5 | jam u0 u1 && expect test.ex 6 | -------------------------------------------------------------------------------- /libraries/RF24/tests/pingpair_blocking/test.ex: -------------------------------------------------------------------------------- 1 | #/usr/bin/expect 2 | 3 | set timeout 100 4 | spawn picocom -b 57600 /dev/ttyUSB0 5 | expect "+READY" 6 | send "1" 7 | expect "+OK" 8 | spawn picocom -b 57600 /dev/ttyUSB1 9 | expect "+READY" 10 | send "1" 11 | expect "+OK" 12 | -------------------------------------------------------------------------------- /libraries/RF24/tests/pingpair_test/printf.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 J. Coliz 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | version 2 as published by the Free Software Foundation. 7 | */ 8 | 9 | /** 10 | * @file printf.h 11 | * 12 | * Setup necessary to direct stdout to the Arduino Serial library, which 13 | * enables 'printf' 14 | */ 15 | 16 | #ifndef __PRINTF_H__ 17 | #define __PRINTF_H__ 18 | 19 | #ifdef ARDUINO 20 | 21 | int serial_putc( char c, FILE * ) 22 | { 23 | Serial.write( c ); 24 | 25 | return c; 26 | } 27 | 28 | void printf_begin(void) 29 | { 30 | fdevopen( &serial_putc, 0 ); 31 | } 32 | 33 | #else 34 | #error This example is only for use on Arduino. 35 | #endif // ARDUINO 36 | 37 | #endif // __PRINTF_H__ 38 | -------------------------------------------------------------------------------- /libraries/RF24/tests/pingpair_test/runtest.py: -------------------------------------------------------------------------------- 1 | #!/opt/local/bin/python 2 | 3 | import sys,serial 4 | 5 | def read_until(token): 6 | while 1: 7 | line = ser.readline(None,"\r") 8 | sys.stdout.write(line) 9 | 10 | if (line.startswith(token)): 11 | break 12 | return line 13 | 14 | 15 | ser = serial.Serial(sys.argv[1], 57600, timeout=5, dsrdtr=False, rtscts=False) 16 | 17 | read_until("+READY") 18 | ser.write(sys.argv[2]) 19 | 20 | line = read_until("+OK") 21 | ser.close() 22 | if (line.find("PASS") != -1): 23 | sys.exit(0) 24 | else: 25 | sys.exit(1) 26 | -------------------------------------------------------------------------------- /libraries/RF24/tests/pingpair_test/runtests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Connect u0 to receiver, u0 to sender 4 | # WARNING: Test config 2 only works with PLUS units. 5 | 6 | jam u0 u1 && expect test.ex 1 7 | sleep 1 8 | stty 57600 raw ignbrk hup < /dev/ttyUSB0 9 | sleep 1 10 | stty 57600 raw ignbrk hup < /dev/ttyUSB1 11 | expect test.ex 2 12 | sleep 1 13 | stty 57600 raw ignbrk hup < /dev/ttyUSB0 14 | sleep 1 15 | stty 57600 raw ignbrk hup < /dev/ttyUSB1 16 | expect test.ex 3 17 | sleep 1 18 | stty 57600 raw ignbrk hup < /dev/ttyUSB0 19 | sleep 1 20 | stty 57600 raw ignbrk hup < /dev/ttyUSB1 21 | expect test.ex 4 22 | -------------------------------------------------------------------------------- /libraries/RF24/tests/pingpair_test/test.ex: -------------------------------------------------------------------------------- 1 | #/usr/bin/expect 2 | 3 | set timeout 100 4 | spawn picocom -b 57600 /dev/ttyUSB0 5 | expect "+READY" 6 | send [lindex $argv 0] 7 | expect "+OK" 8 | spawn picocom -b 57600 /dev/ttyUSB1 9 | expect "+READY" 10 | send [lindex $argv 0] 11 | expect "+OK" 12 | -------------------------------------------------------------------------------- /libraries/RF24/utility/ATTiny/RF24_arch_config.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | TMRh20 2015 4 | ATTiny Configuration File 5 | */ 6 | 7 | #ifndef __RF24_ARCH_CONFIG_H__ 8 | #define __RF24_ARCH_CONFIG_H__ 9 | 10 | /*** USER DEFINES: ***/ 11 | //#define FAILURE_HANDLING 12 | //#define MINIMAL 13 | /**********************/ 14 | 15 | #define rf24_max(a,b) (a>b?a:b) 16 | #define rf24_min(a,b) (a 22 | #else 23 | #include 24 | #endif 25 | #include 26 | 27 | // Include the header file for SPI functions ( Main SPI code is contained in RF24.cpp for simplicity ) 28 | #include "spi.h" 29 | 30 | #define _SPI SPI 31 | 32 | #ifdef SERIAL_DEBUG 33 | #define IF_SERIAL_DEBUG(x) ({x;}) 34 | #else 35 | #define IF_SERIAL_DEBUG(x) 36 | #if defined(RF24_TINY) 37 | #define printf_P(...) 38 | #endif 39 | #endif 40 | 41 | #include 42 | #define PRIPSTR "%S" 43 | 44 | 45 | 46 | #endif // __RF24_ARCH_CONFIG_H__ 47 | 48 | -------------------------------------------------------------------------------- /libraries/RF24/utility/BBB/compatibility.c: -------------------------------------------------------------------------------- 1 | 2 | #include "compatibility.h" 3 | 4 | 5 | static long mtime, seconds, useconds; 6 | static struct timeval start, end; 7 | 8 | /**********************************************************************/ 9 | /** 10 | * This function is added in order to simulate arduino delay() function 11 | * @param milisec 12 | */ 13 | void __msleep(int milisec) 14 | { 15 | struct timespec req = {0}; 16 | req.tv_sec = 0; 17 | req.tv_nsec = milisec * 1000000L; 18 | nanosleep(&req, (struct timespec *)NULL); 19 | } 20 | 21 | void __usleep(int milisec) 22 | { 23 | struct timespec req = {0}; 24 | req.tv_sec = 0; 25 | req.tv_nsec = milisec * 1000L; 26 | nanosleep(&req, (struct timespec *)NULL); 27 | } 28 | 29 | /** 30 | * This function is added in order to simulate arduino millis() function 31 | */ 32 | 33 | 34 | void __start_timer() 35 | { 36 | gettimeofday(&start, NULL); 37 | } 38 | 39 | long __millis() 40 | { 41 | gettimeofday(&end, NULL); 42 | seconds = end.tv_sec - start.tv_sec; 43 | useconds = end.tv_usec - start.tv_usec; 44 | 45 | mtime = ((seconds) * 1000 + useconds/1000.0) + 0.5; 46 | return mtime; 47 | } 48 | -------------------------------------------------------------------------------- /libraries/RF24/utility/BBB/compatibility.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: compatiblity.h 3 | * Author: purinda 4 | * 5 | * Created on 24 June 2012, 3:08 PM 6 | */ 7 | 8 | #ifndef COMPATIBLITY_H 9 | #define COMPATIBLITY_H 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | void __msleep(int milisec); 20 | void __usleep(int milisec); 21 | void __start_timer(); 22 | long __millis(); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | #endif /* COMPATIBLITY_H */ 29 | 30 | -------------------------------------------------------------------------------- /libraries/RF24/utility/BBB/includes.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __RF24_INCLUDES_H__ 3 | #define __RF24_INCLUDES_H__ 4 | 5 | #define RF24_BBB 6 | #include "BBB/RF24_arch_config.h" 7 | 8 | #endif -------------------------------------------------------------------------------- /libraries/RF24/utility/Due/RF24_arch_config.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | TMRh20 2015 4 | RF24 Configuration file for Arduino Due 5 | 6 | */ 7 | 8 | #ifndef __RF24_ARCH_CONFIG_H__ 9 | #define __RF24_ARCH_CONFIG_H__ 10 | 11 | /*** USER DEFINES: ***/ 12 | //#define FAILURE_HANDLING 13 | //#define SERIAL_DEBUG 14 | //#define MINIMAL 15 | /**********************/ 16 | #define rf24_max(a,b) (a>b?a:b) 17 | #define rf24_min(a,b) (a 20 | #include 21 | 22 | #define _BV(x) (1<<(x)) 23 | #define _SPI SPI 24 | 25 | #ifdef SERIAL_DEBUG 26 | #define IF_SERIAL_DEBUG(x) ({x;}) 27 | #else 28 | #define IF_SERIAL_DEBUG(x) 29 | #endif 30 | 31 | #define printf_P printf 32 | #define strlen_P strlen 33 | #define PRIPSTR "%s" 34 | 35 | 36 | #endif // __RF24_CONFIG_H__ 37 | 38 | -------------------------------------------------------------------------------- /libraries/RF24/utility/LittleWire/RF24_arch_config.h: -------------------------------------------------------------------------------- 1 | #ifndef __ARCH_CONFIG_H__ 2 | #define __ARCH_CONFIG_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | // Additional fixes for LittleWire 12 | #include 13 | #include 14 | extern LittleWireSPI _SPI; 15 | 16 | // GCC a Arduino Missing 17 | #define _BV(x) (1<<(x)) 18 | #define pgm_read_word(p) (*(p)) 19 | #define pgm_read_byte(p) (*(p)) 20 | 21 | //typedef uint16_t prog_uint16_t; 22 | #define PSTR(x) (x) 23 | #define printf_P printf 24 | #define strlen_P strlen 25 | #define PROGMEM 26 | #define PRIPSTR "%s" 27 | 28 | #ifdef SERIAL_DEBUG 29 | #define IF_SERIAL_DEBUG(x) ({x;}) 30 | #else 31 | #define IF_SERIAL_DEBUG(x) 32 | #if defined(RF24_TINY) 33 | #define printf_P(...) 34 | #endif 35 | #endif 36 | 37 | 38 | #endif -------------------------------------------------------------------------------- /libraries/RF24/utility/MRAA/compatibility.c: -------------------------------------------------------------------------------- 1 | 2 | #include "compatibility.h" 3 | 4 | static struct timeval start, end; 5 | //static long mtime, seconds, useconds; 6 | 7 | /**********************************************************************/ 8 | /** 9 | * This function is added in order to simulate arduino delay() function 10 | * @param milisec 11 | */ 12 | void __msleep(int milisec) 13 | { 14 | struct timespec req = {0}; 15 | req.tv_sec = 0; 16 | req.tv_nsec = milisec * 1000000L; 17 | nanosleep(&req, (struct timespec *)NULL); 18 | //usleep(milisec*1000); 19 | } 20 | 21 | void __usleep(int milisec) 22 | { 23 | struct timespec req = {0}; 24 | req.tv_sec = 0; 25 | req.tv_nsec = milisec * 1000L; 26 | nanosleep(&req, (struct timespec *)NULL); 27 | //usleep(milisec); 28 | } 29 | 30 | /** 31 | * This function is added in order to simulate arduino millis() function 32 | */ 33 | void __start_timer() 34 | { 35 | gettimeofday(&start, NULL); 36 | } 37 | 38 | long __millis() 39 | { 40 | static long mtime, seconds, useconds; 41 | 42 | gettimeofday(&end, NULL); 43 | seconds = end.tv_sec - start.tv_sec; 44 | useconds = end.tv_usec - start.tv_usec; 45 | 46 | mtime = ((seconds) * 1000 + useconds/1000.0) + 0.5; 47 | return mtime; 48 | } 49 | -------------------------------------------------------------------------------- /libraries/RF24/utility/MRAA/compatibility.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: compatiblity.h 3 | * Author: purinda 4 | * 5 | * Created on 24 June 2012, 3:08 PM 6 | */ 7 | 8 | #ifndef COMPATIBLITY_H 9 | #define COMPATIBLITY_H 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | void __msleep(int milisec); 20 | void __usleep(int milisec); 21 | void __start_timer(); 22 | long __millis(); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | #endif /* COMPATIBLITY_H */ 29 | 30 | -------------------------------------------------------------------------------- /libraries/RF24/utility/MRAA/includes.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __RF24_INCLUDES_H__ 3 | #define __RF24_INCLUDES_H__ 4 | 5 | #ifndef MRAA 6 | #define MRAA 7 | #endif 8 | #include "MRAA/RF24_arch_config.h" 9 | 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /libraries/RF24/utility/MRAA/spi.h: -------------------------------------------------------------------------------- 1 | /* 2 | * TMRh20 2015 3 | * SPI layer for RF24 4 | */ 5 | 6 | #ifndef _SPI_H_INCLUDED 7 | #define _SPI_H_INCLUDED 8 | /** 9 | * @file spi.h 10 | * \cond HIDDEN_SYMBOLS 11 | * Class declaration for SPI helper files 12 | */ 13 | #include 14 | #include "mraa.hpp" 15 | 16 | class SPI { 17 | public: 18 | 19 | SPI(); 20 | virtual ~SPI(); 21 | 22 | mraa::Spi* mspi; 23 | 24 | inline uint8_t transfer(uint8_t _data); 25 | inline void transfernb(char* tbuf, char* rbuf, uint32_t len); 26 | inline void transfern(char* buf, uint32_t len); 27 | 28 | void begin(int busNo); 29 | void end(); 30 | 31 | void setBitOrder(uint8_t bit_order); 32 | void setDataMode(uint8_t data_mode); 33 | void setClockDivider(uint32_t spi_speed); 34 | void chipSelect(int csn_pin); 35 | }; 36 | 37 | 38 | uint8_t SPI::transfer(uint8_t _data) 39 | { 40 | return mspi->writeByte(_data); 41 | } 42 | 43 | void SPI::transfernb(char* tbuf, char* rbuf, uint32_t len){ 44 | mspi->transfer((uint8_t*)tbuf, (uint8_t*)rbuf, len); 45 | } 46 | 47 | void SPI::transfern(char* buf, uint32_t len) 48 | { 49 | transfernb(buf, buf, len); 50 | } 51 | 52 | /** 53 | * \endcond 54 | */ 55 | #endif 56 | -------------------------------------------------------------------------------- /libraries/RF24/utility/RPi/RF24_arch_config.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __ARCH_CONFIG_H__ 3 | #define __ARCH_CONFIG_H__ 4 | 5 | #define RF24_LINUX 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | #include "bcm2835.h" 15 | #include "spi.h" 16 | #define _SPI spi 17 | 18 | #if defined SPI_HAS_TRANSACTION && !defined SPI_UART && !defined SOFTSPI 19 | #define RF24_SPI_TRANSACTIONS 20 | #endif 21 | // GCC a Arduino Missing 22 | #define _BV(x) (1<<(x)) 23 | #define pgm_read_word(p) (*(p)) 24 | #define pgm_read_byte(p) (*(p)) 25 | 26 | //typedef uint16_t prog_uint16_t; 27 | #define PSTR(x) (x) 28 | #define printf_P printf 29 | #define strlen_P strlen 30 | #define PROGMEM 31 | #define PRIPSTR "%s" 32 | 33 | #ifdef SERIAL_DEBUG 34 | #define IF_SERIAL_DEBUG(x) ({x;}) 35 | #else 36 | #define IF_SERIAL_DEBUG(x) 37 | #endif 38 | 39 | #define digitalWrite(pin, value) bcm2835_gpio_write(pin, value) 40 | #define pinMode(pin,value) bcm2835_gpio_fsel(pin,value); 41 | #define OUTPUT BCM2835_GPIO_FSEL_OUTP 42 | 43 | #endif -------------------------------------------------------------------------------- /libraries/RF24/utility/RPi/includes.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __RF24_INCLUDES_H__ 3 | #define __RF24_INCLUDES_H__ 4 | 5 | #define RF24_RPi 6 | #include "RPi/bcm2835.h" 7 | #include "RPi/RF24_arch_config.h" 8 | #include "RPi/interrupt.h" 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /libraries/RF24/utility/RPi/spi.cpp: -------------------------------------------------------------------------------- 1 | #include "spi.h" 2 | #include 3 | 4 | static pthread_mutex_t spiMutex; 5 | 6 | SPI::SPI() { 7 | 8 | } 9 | 10 | 11 | void SPI::begin( int busNo ) { 12 | if (!bcm2835_init()){ 13 | return; 14 | } 15 | 16 | bcm2835_spi_begin(); 17 | } 18 | 19 | void SPI::beginTransaction(SPISettings settings){ 20 | 21 | pthread_mutex_lock (&spiMutex); 22 | setBitOrder(settings.border); 23 | setDataMode(settings.dmode); 24 | setClockDivider(settings.clck); 25 | } 26 | 27 | void SPI::endTransaction() { 28 | pthread_mutex_unlock (&spiMutex); 29 | } 30 | 31 | void SPI::setBitOrder(uint8_t bit_order) { 32 | bcm2835_spi_setBitOrder(bit_order); 33 | } 34 | 35 | void SPI::setDataMode(uint8_t data_mode) { 36 | bcm2835_spi_setDataMode(data_mode); 37 | } 38 | 39 | void SPI::setClockDivider(uint16_t spi_speed) { 40 | bcm2835_spi_setClockDivider(spi_speed); 41 | } 42 | 43 | void SPI::chipSelect(int csn_pin){ 44 | bcm2835_spi_chipSelect(csn_pin); 45 | delayMicroseconds(5); 46 | } 47 | 48 | SPI::~SPI() { 49 | 50 | } -------------------------------------------------------------------------------- /libraries/RF24/utility/Teensy/RF24_arch_config.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #if ARDUINO < 100 4 | #include 5 | #else 6 | #include 7 | #endif 8 | 9 | #include 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | #include 16 | #define _SPI SPI 17 | 18 | #define printf Serial.printf 19 | 20 | #ifdef SERIAL_DEBUG 21 | #define IF_SERIAL_DEBUG(x) ({x;}) 22 | #else 23 | #define IF_SERIAL_DEBUG(x) 24 | #endif 25 | 26 | 27 | #define PRIPSTR "%s" 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /libraries/RF24/utility/Template/compatibility.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: compatiblity.h 3 | * Author: purinda 4 | * 5 | * Created on 24 June 2012, 3:08 PM 6 | */ 7 | 8 | /** 9 | * @file compatibility.h 10 | * Class declaration for SPI helper files 11 | */ 12 | 13 | /** 14 | * Example of compatibility.h class declaration for timing functions portability 15 | * 16 | * @defgroup Porting_Timing Porting: Timing 17 | * 18 | * 19 | * @{ 20 | */ 21 | 22 | #ifndef COMPATIBLITY_H 23 | #define COMPATIBLITY_H 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | #include 30 | #include 31 | #include 32 | 33 | void __msleep(int milisec); 34 | void __usleep(int milisec); 35 | void __start_timer(); 36 | long __millis(); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif /* COMPATIBLITY_H */ 43 | 44 | /*@}*/ -------------------------------------------------------------------------------- /libraries/RF24/utility/Template/gpio.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | * @file gpio.h 5 | * Class declaration for SPI helper files 6 | */ 7 | 8 | /** 9 | * Example of gpio.h class declaration for GPIO portability 10 | * 11 | * @defgroup Porting_GPIO Porting: GPIO 12 | * 13 | * 14 | * @{ 15 | */ 16 | #ifndef H 17 | #define H 18 | 19 | #include 20 | 21 | //class GPIO { 22 | public: 23 | /* Constants */ 24 | static const int DIRECTION_OUT = 1; 25 | static const int DIRECTION_IN = 0; 26 | 27 | static const int OUTPUT_HIGH = 1; 28 | static const int OUTPUT_LOW = 0; 29 | 30 | GPIO(); 31 | 32 | /** 33 | * Similar to Arduino pinMode(pin,mode); 34 | * @param port 35 | * @param DDR 36 | */ 37 | static void open(int port, int DDR); 38 | /** 39 | * 40 | * @param port 41 | */ 42 | static void close(int port); 43 | /** 44 | * Similar to Arduino digitalRead(pin); 45 | * @param port 46 | * @param value 47 | */ 48 | static int read(int port); 49 | /** 50 | * Similar to Arduino digitalWrite(pin,state); 51 | * @param port 52 | * @param value 53 | */ 54 | static void write(int port,int value); 55 | 56 | virtual ~GPIO(); 57 | }; 58 | 59 | /*@}*/ -------------------------------------------------------------------------------- /libraries/RF24/utility/Template/includes.h: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * @file includes.h 4 | * Configuration defines for RF24/Linux 5 | */ 6 | 7 | /** 8 | * Example of includes.h for RF24 Linux portability 9 | * 10 | * @defgroup Porting_Includes Porting: Includes 11 | * 12 | * 13 | * @{ 14 | */ 15 | 16 | #ifndef __RF24_INCLUDES_H__ 17 | #define __RF24_INCLUDES_H__ 18 | 19 | /** 20 | * Define a specific platform for this configuration 21 | */ 22 | #define RF24_BBB 23 | 24 | /** 25 | * Load the correct configuration for this platform 26 | */ 27 | #include "BBB/RF24_arch_config.h" 28 | 29 | #endif 30 | 31 | /*@}*/ -------------------------------------------------------------------------------- /libraries/RTCZero/README.adoc: -------------------------------------------------------------------------------- 1 | = RTC Library for Arduino = 2 | 3 | The RTC library enables an Arduino Zero or MKR1000 board to take control of the internal RTC. 4 | 5 | For more information about this library please visit us at 6 | http://arduino.cc/en/Reference/RTC 7 | 8 | == License == 9 | 10 | Copyright (c) Arduino LLC. All right reserved. 11 | 12 | This library is free software; you can redistribute it and/or 13 | modify it under the terms of the GNU Lesser General Public 14 | License as published by the Free Software Foundation; either 15 | version 2.1 of the License, or (at your option) any later version. 16 | 17 | This library is distributed in the hope that it will be useful, 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 | Lesser General Public License for more details. 21 | 22 | You should have received a copy of the GNU Lesser General Public 23 | License along with this library; if not, write to the Free Software 24 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 | -------------------------------------------------------------------------------- /libraries/RTCZero/examples/SimpleRTCAlarm/SimpleRTCAlarm.ino: -------------------------------------------------------------------------------- 1 | /* 2 | Simple RTC Alarm for Arduino Zero and MKR1000 3 | 4 | Demonstrates how to set an RTC alarm for the Arduino Zero and MKR1000 5 | 6 | This example code is in the public domain 7 | 8 | http://arduino.cc/en/Tutorial/SimpleRTCAlarm 9 | 10 | created by Arturo Guadalupi 11 | 25 Sept 2015 12 | 13 | modified 14 | 21 Oct 2015 15 | */ 16 | 17 | #include 18 | 19 | /* Create an rtc object */ 20 | RTCZero rtc; 21 | 22 | /* Change these values to set the current initial time */ 23 | const byte seconds = 0; 24 | const byte minutes = 0; 25 | const byte hours = 16; 26 | 27 | /* Change these values to set the current initial date */ 28 | const byte day = 25; 29 | const byte month = 9; 30 | const byte year = 15; 31 | 32 | void setup() 33 | { 34 | Serial.begin(9600); 35 | 36 | rtc.begin(); // initialize RTC 24H format 37 | 38 | rtc.setTime(hours, minutes, seconds); 39 | rtc.setDate(day, month, year); 40 | 41 | rtc.setAlarmTime(16, 0, 10); 42 | rtc.enableAlarm(rtc.MATCH_HHMMSS); 43 | 44 | rtc.attachInterrupt(alarmMatch); 45 | } 46 | 47 | void loop() 48 | { 49 | 50 | } 51 | 52 | void alarmMatch() 53 | { 54 | Serial.println("Alarm Match!"); 55 | } 56 | -------------------------------------------------------------------------------- /libraries/RTCZero/library.properties: -------------------------------------------------------------------------------- 1 | name=RTCZero 2 | version=1.4.3 3 | author=Arduino 4 | maintainer=Arduino 5 | sentence=Allows to use the RTC functionalities. For Arduino Zero and MKR1000 only. 6 | paragraph=With this library you can use the RTC peripheral of an Arduino Zero or MKR1000 in order to program actions related to date and time. 7 | category=Timing 8 | url=http://www.arduino.cc/en/Reference/RTCZero 9 | architectures=samd 10 | -------------------------------------------------------------------------------- /libraries/RTClib/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For RTC 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | DateTime KEYWORD1 10 | RTC_DS1307 KEYWORD1 11 | RTC_Millis KEYWORD1 12 | Ds1307SqwPinMode KEYWORD1 13 | 14 | ####################################### 15 | # Methods and Functions (KEYWORD2) 16 | ####################################### 17 | 18 | year KEYWORD2 19 | month KEYWORD2 20 | day KEYWORD2 21 | hour KEYWORD2 22 | minute KEYWORD2 23 | second KEYWORD2 24 | dayOfWeek KEYWORD2 25 | secondstime KEYWORD2 26 | unixtime KEYWORD2 27 | begin KEYWORD2 28 | adjust KEYWORD2 29 | isrunning KEYWORD2 30 | now KEYWORD2 31 | readSqwPinMode KEYWORD2 32 | writeSqwPinMode KEYWORD2 33 | 34 | ####################################### 35 | # Constants (LITERAL1) 36 | ####################################### 37 | 38 | -------------------------------------------------------------------------------- /libraries/RTClib/library.properties: -------------------------------------------------------------------------------- 1 | name=RTClib 2 | version=1.2.0 3 | author=Adafruit 4 | maintainer=Adafruit 5 | sentence=A fork of Jeelab's fantastic RTC library 6 | paragraph=A fork of Jeelab's fantastic RTC library 7 | category=Timing 8 | url=https://github.com/adafruit/RTClib 9 | architectures=* 10 | -------------------------------------------------------------------------------- /libraries/Servo/README.adoc: -------------------------------------------------------------------------------- 1 | = Servo Library for Arduino = 2 | 3 | This library allows an Arduino board to control RC (hobby) servo motors. 4 | 5 | For more information about this library please visit us at 6 | http://www.arduino.cc/en/Reference/Servo 7 | 8 | == License == 9 | 10 | Copyright (c) 2013 Arduino LLC. All right reserved. 11 | Copyright (c) 2009 Michael Margolis. All right reserved. 12 | 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 | -------------------------------------------------------------------------------- /libraries/Servo/examples/Knob/Knob.ino: -------------------------------------------------------------------------------- 1 | /* 2 | Controlling a servo position using a potentiometer (variable resistor) 3 | by Michal Rinott 4 | 5 | modified on 8 Nov 2013 6 | by Scott Fitzgerald 7 | http://www.arduino.cc/en/Tutorial/Knob 8 | */ 9 | 10 | #include 11 | 12 | Servo myservo; // create servo object to control a servo 13 | 14 | int potpin = 0; // analog pin used to connect the potentiometer 15 | int val; // variable to read the value from the analog pin 16 | 17 | void setup() { 18 | myservo.attach(9); // attaches the servo on pin 9 to the servo object 19 | } 20 | 21 | void loop() { 22 | val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023) 23 | val = map(val, 0, 1023, 0, 180); // scale it to use it with the servo (value between 0 and 180) 24 | myservo.write(val); // sets the servo position according to the scaled value 25 | delay(15); // waits for the servo to get there 26 | } 27 | 28 | -------------------------------------------------------------------------------- /libraries/Servo/examples/Sweep/Sweep.ino: -------------------------------------------------------------------------------- 1 | /* Sweep 2 | by BARRAGAN 3 | This example code is in the public domain. 4 | 5 | modified 8 Nov 2013 6 | by Scott Fitzgerald 7 | http://www.arduino.cc/en/Tutorial/Sweep 8 | */ 9 | 10 | #include 11 | 12 | Servo myservo; // create servo object to control a servo 13 | // twelve servo objects can be created on most boards 14 | 15 | int pos = 0; // variable to store the servo position 16 | 17 | void setup() { 18 | myservo.attach(9); // attaches the servo on pin 9 to the servo object 19 | } 20 | 21 | void loop() { 22 | for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees 23 | // in steps of 1 degree 24 | myservo.write(pos); // tell servo to go to position in variable 'pos' 25 | delay(15); // waits 15ms for the servo to reach the position 26 | } 27 | for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees 28 | myservo.write(pos); // tell servo to go to position in variable 'pos' 29 | delay(15); // waits 15ms for the servo to reach the position 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /libraries/Servo/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map Servo 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | Servo KEYWORD1 Servo 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | attach KEYWORD2 15 | detach KEYWORD2 16 | write KEYWORD2 17 | read KEYWORD2 18 | attached KEYWORD2 19 | writeMicroseconds KEYWORD2 20 | readMicroseconds KEYWORD2 21 | 22 | ####################################### 23 | # Constants (LITERAL1) 24 | ####################################### 25 | -------------------------------------------------------------------------------- /libraries/Servo/library.properties: -------------------------------------------------------------------------------- 1 | name=Servo 2 | version=1.1.1 3 | author=Michael Margolis, Arduino 4 | maintainer=Arduino 5 | sentence=Allows Arduino boards to control a variety of servo motors. For all Arduino boards. 6 | paragraph=This library can control a great number of servos.
It makes careful use of timers: the library can control 12 servos using only 1 timer.
On the Arduino Due you can control up to 60 servos.
7 | category=Device Control 8 | url=http://www.arduino.cc/en/Reference/Servo 9 | architectures=avr,sam,samd 10 | -------------------------------------------------------------------------------- /libraries/SoftwareSerial/SoftwareSerial.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_NFCShield_I2C/README.txt: -------------------------------------------------------------------------------- 1 | This is a library for the Adafruit PN532 NFC/RFID breakout boards 2 | This library works with the Adafruit NFC breakout and shield 3 | ----> https://www.adafruit.com/products/364 4 | ----> https://www.adafruit.com/products/789 5 | 6 | Check out the links above for our tutorials and wiring diagrams 7 | These chips use SPI or I2C to communicate 8 | 9 | Adafruit invests time and resources providing this open source code, 10 | please support Adafruit and open-source hardware by purchasing 11 | products from Adafruit! 12 | 13 | Written by Limor Fried/Ladyada & Kevin Townsend for Adafruit Industries. 14 | BSD license, check license.txt for more information 15 | All text above must be included in any redistribution 16 | 17 | To download: click the ZIP button above, rename 18 | the uncompressed folder Adafruit_NFCShield_I2C. Check that the 19 | Adafruit_NFCShield_I2C folder contains Adafruit_NFCShield_I2C.cpp and 20 | Adafruit_NFCShield_I2C.h 21 | 22 | Place the Adafruit_NFCShield_I2C library folder your 23 | /libraries/ folder. You may need to create the 24 | libraries subfolder if its your first library. Restart the IDE. 25 | -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | TargetEmulation 4 | 5 | 6 | 7 | 8 | 9 | net.rim.ejde.internal.builder.BlackBerryPreprocessBuilder 10 | 11 | 12 | 13 | 14 | net.rim.ejde.internal.builder.BlackBerryResourcesBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | 25 | net.rim.ejde.BlackBerryPreProcessNature 26 | net.rim.ejde.BlackBerryProjectCoreNature 27 | org.eclipse.jdt.core.javanature 28 | 29 | 30 | -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | #Fri Jun 22 00:02:13 EDT 2012 2 | eclipse.preferences.version=1 3 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.4 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore 12 | org.eclipse.jdt.core.compiler.source=1.3 13 | -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/res/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/TM1638/Adafruit_NFCShield_I2C/examples/apduToBlackBerry/BlackBerry7/res/img/icon.png -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_Thermal/ReadMe.txt: -------------------------------------------------------------------------------- 1 | This is an Arduino library for the Adafruit Thermal Printer. 2 | Pick one up at --> http://www.adafruit.com/products/597 3 | These printers use TTL serial to communicate, 2 pins are required. 4 | 5 | Full tutorial with wiring diagrams, images, etc. is available at 6 | http://www.ladyada.net/products/thermalprinter/ 7 | 8 | Before loading the example code, or even opening the Arduino software, 9 | place the Adafruit_Thermal folder in your Arduino library. 10 | 11 | ////ARDUINO LIBRARY LOCATION//// 12 | On your Mac:: In (home directory)/Documents/Arduino/Libraries 13 | On your PC:: My Documents\Arduino\libraries 14 | On your Linux box: (home directory)/sketchbook/libraries 15 | 16 | Adafruit invests time and resources providing this open source code. 17 | Please support Adafruit and open-source hardware by purchasing products 18 | from Adafruit! 19 | 20 | Written by Limor Fried/Ladyada for Adafruit Industries, based on Thermal 21 | library from bildr.org 22 | MIT license, all text above must be included in any redistribution. 23 | -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_Thermal/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################################### 2 | # keywords.txt - keywords file for the Thermal library 3 | 4 | # Created by Adam Meyer of bildr Aug 10th 2011 5 | 6 | # Released as MIT license 7 | 8 | ####################################################### 9 | 10 | ####################################### 11 | # Datatypes (KEYWORD1) 12 | ####################################### 13 | 14 | Thermal KEYWORD1 15 | 16 | ####################################### 17 | # Methods and Functions (KEYWORD2) 18 | ####################################### 19 | 20 | test KEYWORD2 21 | print KEYWORD2 22 | print KEYWORD2 23 | println KEYWORD2 24 | println KEYWORD2 25 | printBarCode KEYWORD2 26 | printFancyBarCode KEYWORD2 27 | boldOn KEYWORD2 28 | boldOff KEYWORD2 29 | sleep KEYWORD2 30 | wake KEYWORD2 31 | setSize KEYWORD2 32 | setBarcodeHeight KEYWORD2 33 | feed KEYWORD2 34 | tab KEYWORD2 35 | justify KEYWORD2 36 | doubleHeightOn KEYWORD2 37 | doubleHeightOff KEYWORD2 38 | inverseOn KEYWORD2 39 | inverseOff KEYWORD2 40 | setDefault KEYWORD2 41 | 42 | 43 | 44 | 45 | 46 | ####################################### 47 | # Constants (LITERAL1) 48 | ####################################### -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_Thermal/ruby/Gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | gem "rmagick" -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_Thermal/ruby/Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: http://rubygems.org/ 3 | specs: 4 | rmagick (2.13.1) 5 | 6 | PLATFORMS 7 | ruby 8 | 9 | DEPENDENCIES 10 | rmagick 11 | -------------------------------------------------------------------------------- /libraries/TM1638/Adafruit_Thermal/ruby/License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 bildr community 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /libraries/TM1638/Bounce/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/TM1638/Bounce/.DS_Store -------------------------------------------------------------------------------- /libraries/TM1638/Bounce/documentation.txt: -------------------------------------------------------------------------------- 1 | Bounce library for Arduino 2 | 3 | Version 1.6 4 | 5 | by Thomas Ouellet Fredericks 6 | with contributions from: 7 | Eric Lowry 8 | Jim Schimpf 9 | Tom Harkaway 10 | 11 | contact: mrtoftrash@gmail.com 12 | 13 | See the online documentation here: http://www.arduino.cc/playground/Code/Bounce 14 | -------------------------------------------------------------------------------- /libraries/TM1638/Bounce/examples/bounce/bounce.pde: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // This code turns a led on/off through a debounced button 4 | // Build the circuit indicated here: http://arduino.cc/en/Tutorial/Button 5 | 6 | #define BUTTON 2 7 | #define LED 13 8 | 9 | // Instantiate a Bounce object with a 5 millisecond debounce time 10 | Bounce bouncer = Bounce( BUTTON,5 ); 11 | 12 | void setup() { 13 | pinMode(BUTTON,INPUT); 14 | pinMode(LED,OUTPUT); 15 | } 16 | 17 | void loop() { 18 | // Update the debouncer 19 | bouncer.update ( ); 20 | 21 | // Get the update value 22 | int value = bouncer.read(); 23 | 24 | // Turn on or off the LED 25 | if ( value == HIGH) { 26 | digitalWrite(LED, HIGH ); 27 | } else { 28 | digitalWrite(LED, LOW ); 29 | } 30 | 31 | } 32 | 33 | -------------------------------------------------------------------------------- /libraries/TM1638/Bounce/examples/change/change.pde: -------------------------------------------------------------------------------- 1 | #include 2 | #define BUTTON 2 3 | #define LED 13 4 | 5 | int ledValue = LOW; 6 | 7 | // This example changes the state of the LED everytime the button is pushed 8 | // Build the circuit indicated here: http://arduino.cc/en/Tutorial/Button 9 | 10 | 11 | Bounce bouncer = Bounce( BUTTON, 5 ); 12 | 13 | void setup() { 14 | pinMode(BUTTON,INPUT); 15 | pinMode(LED,OUTPUT); 16 | } 17 | 18 | void loop() { 19 | 20 | if ( bouncer.update() ) { 21 | if ( bouncer.read() == HIGH) { 22 | if ( ledValue == LOW ) { 23 | ledValue = HIGH; 24 | } else { 25 | ledValue = LOW; 26 | } 27 | digitalWrite(LED,ledValue); 28 | } 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /libraries/TM1638/Bounce/examples/rebounce/rebounce.pde: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // As long as the button is held down, the LED will blink 4 | // Build the circuit indicated here: http://arduino.cc/en/Tutorial/Button 5 | 6 | #define BUTTON 2 7 | #define LED 13 8 | 9 | // A variable to store the current LED state 10 | int ledState = LOW; 11 | 12 | // Instantiate a Bounce object with a 5 millisecond debounce time 13 | Bounce bouncer = Bounce( BUTTON,5 ); 14 | 15 | void setup() { 16 | pinMode(BUTTON,INPUT); 17 | pinMode(LED,OUTPUT); 18 | } 19 | 20 | void loop() { 21 | 22 | // Update and monitor a change of input 23 | if ( bouncer.update() ) { 24 | 25 | // Get the state of the button 26 | int value = bouncer.read(); 27 | 28 | // Toggle the LED if the button is held 29 | if ( value == HIGH) { 30 | // Make the button retrigger in 500 milliseconds 31 | bouncer.rebounce(500); 32 | if ( ledState == LOW ) { 33 | ledState = HIGH; 34 | } else { 35 | ledState = LOW; 36 | } 37 | } else { 38 | ledState = LOW; 39 | } 40 | 41 | digitalWrite(LED, ledState ); 42 | 43 | } 44 | 45 | 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /libraries/TM1638/Bounce/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Debounce 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | Bounce KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | update KEYWORD2 16 | interval KEYWORD2 17 | read KEYWORD2 18 | write KEYWORD2 19 | rebounce KEYWORD2 20 | risingEdge KEYWORD2 21 | fallingEdge KEYWORD2 22 | 23 | ####################################### 24 | # Instances (KEYWORD2) 25 | ####################################### 26 | 27 | ####################################### 28 | # Constants (LITERAL1) 29 | ####################################### 30 | 31 | -------------------------------------------------------------------------------- /libraries/TM1638/DHT/dht.h: -------------------------------------------------------------------------------- 1 | // 2 | // FILE: dht.h 3 | // VERSION: 0.1.04 4 | // PURPOSE: DHT Temperature & Humidity Sensor library for Arduino 5 | // 6 | // URL: http://arduino.cc/playground/Main/DHTLib 7 | // 8 | // HISTORY: 9 | // see dht.cpp file 10 | // 11 | 12 | #ifndef dht_h 13 | #define dht_h 14 | 15 | #if ARDUINO < 100 16 | #include 17 | #else 18 | #include 19 | #endif 20 | 21 | #define DHT_LIB_VERSION "0.1.04" 22 | 23 | #define DHTLIB_OK 0 24 | #define DHTLIB_ERROR_CHECKSUM -1 25 | #define DHTLIB_ERROR_TIMEOUT -2 26 | #define DHTLIB_INVALID_VALUE -999 27 | 28 | class dht 29 | { 30 | public: 31 | int read11(uint8_t pin); 32 | int read22(uint8_t pin); 33 | double humidity; 34 | double temperature; 35 | 36 | private: 37 | uint8_t bits[5]; // buffer to receive data 38 | int read(uint8_t pin); 39 | }; 40 | #endif 41 | // 42 | // END OF FILE 43 | // 44 | -------------------------------------------------------------------------------- /libraries/TM1638/DHT22/DHT22.h: -------------------------------------------------------------------------------- 1 | #ifndef _DHT22_H_ 2 | #define _DHT22_H_ 3 | 4 | #include 5 | 6 | #define DHT22_ERROR_VALUE -99.5 7 | 8 | typedef enum 9 | { 10 | DHT_ERROR_NONE = 0, 11 | DHT_BUS_HUNG, 12 | DHT_ERROR_NOT_PRESENT, 13 | DHT_ERROR_ACK_TOO_LONG, 14 | DHT_ERROR_SYNC_TIMEOUT, 15 | DHT_ERROR_DATA_TIMEOUT, 16 | DHT_ERROR_CHECKSUM, 17 | DHT_ERROR_TOOQUICK 18 | } DHT22_ERROR_t; 19 | 20 | class DHT22 21 | { 22 | private: 23 | uint8_t _bitmask; 24 | volatile uint8_t *_baseReg; 25 | unsigned long _lastReadTime; 26 | float _lastHumidity; 27 | float _lastTemperature; 28 | 29 | public: 30 | DHT22(uint8_t pin); 31 | DHT22_ERROR_t readData(void); 32 | float getHumidity(); 33 | float getTemperatureC(); 34 | void clockReset(); 35 | }; 36 | 37 | #endif /*_DHT22_H_*/ 38 | -------------------------------------------------------------------------------- /libraries/TM1638/DHT22/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For DHT22 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | DHT22 KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | readData KEYWORD2 16 | getHumidity KEYWORD2 17 | getTemperatureC KEYWORD2 18 | clockReset KEYWORD2 19 | 20 | ####################################### 21 | # Instances (KEYWORD2) 22 | ####################################### 23 | 24 | 25 | ####################################### 26 | # Constants (LITERAL1) 27 | ####################################### 28 | 29 | DHT_ERROR_NONE LITERAL1 30 | DHT_BUS_HUNG LITERAL1 31 | DHT_ERROR_NOT_PRESENT LITERAL1 32 | DHT_ERROR_ACK_TOO_LONG LITERAL1 33 | DHT_ERROR_SYNC_TIMEOUT LITERAL1 34 | DHT_ERROR_DATA_TIMEOUT LITERAL1 35 | DHT_ERROR_CHECKSUM LITERAL1 36 | DHT_ERROR_TOOQUICK LITERAL1 37 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/Backlight.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: Backlight.cpp 3 | * Author: Rodot 4 | * 5 | * Created on October 1, 2013, 5:40 PM 6 | */ 7 | 8 | #include "Backlight.h" 9 | 10 | void Backlight::begin() { 11 | #if (ENABLE_BACKLIGHT > 0) 12 | //ambientLight = 0; 13 | automatic = true; 14 | #endif 15 | } 16 | 17 | void Backlight::set(uint8_t value) { 18 | analogWrite(BACKLIGHT_PIN, value); 19 | } 20 | 21 | void Backlight::update() { 22 | #if (ENABLE_BACKLIGHT > 0) 23 | ambientLight = (ambientLight * (AMBIENTLIGHT_SMOOTHING - 1) + analogRead(AMBIENTLIGHT_PIN)) / AMBIENTLIGHT_SMOOTHING; //read value and smooth it 24 | if (automatic) { 25 | backlightValue = map(constrain(ambientLight, ambientLightMin, ambientLightMax), ambientLightMin, ambientLightMax, backlightMax, backlightMin); 26 | set(backlightValue); 27 | } 28 | #endif 29 | } -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/Backlight.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: Backlight.h 3 | * Author: Rodot 4 | * 5 | * Created on October 1, 2013, 5:40 PM 6 | */ 7 | 8 | #ifndef BACKLIGHT_H 9 | #define BACKLIGHT_H 10 | 11 | #include 12 | #include "settings.c" 13 | 14 | class Backlight { 15 | public: 16 | void begin(); 17 | void set(uint8_t value); 18 | void update(); 19 | boolean automatic; 20 | uint16_t ambientLight; 21 | uint8_t backlightValue; 22 | uint8_t backlightMin, backlightMax; 23 | uint16_t ambientLightMin, ambientLightMax; 24 | }; 25 | 26 | #endif /* BACKLIGHT_H */ -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/Battery.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * File: Battery.cpp 3 | * Author: Rodot 4 | * 5 | * Created on October 1, 2013, 10:13 PM 6 | */ 7 | 8 | #include "Battery.h" 9 | 10 | void Battery::begin() { 11 | #if (ENABLE_BATTERY > 0) 12 | voltage = BAT_LVL_FULL; 13 | level = NUM_LVL; 14 | nextUpdate = 1; 15 | //show = false; 16 | #endif 17 | } 18 | 19 | void Battery::update() { 20 | #if (ENABLE_BATTERY > 0) 21 | if (!(nextUpdate % 32)) { //every 32 frames 22 | voltage = analogRead(BAT_PIN)*6.4453; //3.3V * 2 *1000 / 1024 23 | if(voltage){ 24 | //set the battery 'level' according to thresholds 25 | level = NUM_LVL; 26 | for (uint8_t i = 0; i < NUM_LVL; i++) { 27 | if (voltage < thresolds[i]) { 28 | level = i; 29 | return; 30 | } 31 | } 32 | } 33 | else{ 34 | level = 255; 35 | } 36 | } 37 | nextUpdate++; 38 | #endif 39 | } 40 | 41 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/Battery.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: Battery.h 3 | * Author: Rodot 4 | * 5 | * Created on October 1, 2013, 10:13 PM 6 | */ 7 | 8 | #ifndef BATTERY_H 9 | #define BATTERY_H 10 | 11 | #include 12 | #include "settings.c" 13 | 14 | /* 15 | //used to power down when battery is too low 16 | #include 17 | #include 18 | #include 19 | */ 20 | 21 | 22 | class Battery { 23 | public: 24 | void begin(); 25 | void update(); 26 | boolean show; 27 | uint8_t level; 28 | uint16_t voltage; 29 | uint16_t thresolds[NUM_LVL]; 30 | uint8_t nextUpdate; 31 | }; 32 | 33 | #endif /* BATTERY_H */ 34 | 35 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/Buttons.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: Buttons.h 3 | * Author: Rodot 4 | * 5 | * Created on October 1, 2013, 8:53 PM 6 | */ 7 | 8 | #ifndef BUTTONS_H 9 | #define BUTTONS_H 10 | 11 | #include 12 | #include "settings.c" 13 | 14 | class Buttons { 15 | public: 16 | void begin(); 17 | void update(); 18 | boolean pressed(uint8_t button); 19 | boolean released(uint8_t button); 20 | boolean held(uint8_t button, uint8_t time); 21 | boolean repeat(uint8_t button, uint8_t period); 22 | uint8_t timeHeld(uint8_t button); 23 | private: 24 | uint8_t pins[NUM_BTN]; 25 | uint8_t states[NUM_BTN]; 26 | 27 | }; 28 | 29 | #endif /* BUTTONS_H */ 30 | 31 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/1.Basics/a_Hello/a_Hello.ino: -------------------------------------------------------------------------------- 1 | //imports the SPI library (needed to communicate with Gamebuino's screen) 2 | #include 3 | //imports the Gamebuino library 4 | #include 5 | //creates a Gamebuino object named gb 6 | Gamebuino gb; 7 | 8 | // the setup routine runs once when Gamebuino starts up 9 | void setup(){ 10 | // initialize the Gamebuino object 11 | gb.begin(); 12 | //display the main menu: 13 | gb.titleScreen(F("My first game")); 14 | gb.popup(F("Let's go!"), 100); 15 | } 16 | 17 | // the loop routine runs over and over again forever 18 | void loop(){ 19 | //updates the gamebuino (the display, the sound, the auto backlight... everything) 20 | //returns true when it's time to render a new frame (20 times/second) 21 | if(gb.update()){ 22 | //prints Hello World! on the screen 23 | gb.display.println(F("Hello World!")); 24 | //declare a variable named count of type integer : 25 | int count; 26 | //get the number of frames rendered and assign it to the "count" variable 27 | count = gb.frameCount; 28 | //prints the variable "count" 29 | gb.display.println(count); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/3.Advanced/Crabator/world.ino: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////// GET TILE 2 | boolean getTile(uint8_t i, uint8_t j){ 3 | if(pgm_read_byte(world + (j%WORLD_H)*byteWidth + (i%WORLD_W)/8) & (B10000000 >> (i % 8))) 4 | return true; 5 | else 6 | return false; 7 | } 8 | 9 | ///////////////////////////////////// DRAW WORLD 10 | void drawWorld(int16_t x, int16_t y){ 11 | int8_t i, j, 12 | w = WORLD_W, 13 | h = WORLD_H; 14 | x = wrap(x,w*8); 15 | y = wrap(y,h*8); 16 | for(j=y/8; j < (LCDHEIGHT/8 + y/8 + 1); j++) { 17 | for(i=x/8; i < (LCDWIDTH/8 + x/8 + 1); i++ ) { 18 | if(getTile(i, j)) { 19 | gb.display.drawBitmap(i*8 - x, j*8 - y, tiles); 20 | } 21 | } 22 | } 23 | } 24 | 25 | ///////////////////////////////////// COLLIDE WORLD 26 | boolean collideWorld(int16_t x, int16_t y, uint8_t w, uint8_t h){ 27 | if(getTile(x/8, y/8)) 28 | return true; 29 | if(getTile((x+w-1)/8, y/8)) 30 | return true; 31 | if(getTile((x+w-1)/8, (y+h-1)/8)) 32 | return true; 33 | if(getTile(x/8, (y+h-1)/8)) 34 | return true; 35 | return false; 36 | } 37 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/3.Advanced/PongMulti/updateDisplay.ino: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////// UPDATE DISPLAY 2 | void updateDisplay(){ 3 | //gb.display.print(gb.getCpuLoad()); 4 | //draw the score 5 | gb.display.fontSize = 2; 6 | gb.display.cursorX = 15; 7 | gb.display.cursorY = 16; 8 | gb.display.print(player_score); 9 | gb.display.cursorX = 57; 10 | gb.display.cursorY = 16; 11 | gb.display.print(oponent_score); 12 | gb.display.fontSize = 1; 13 | //draw the ball 14 | gb.display.fillRect(ball_x, ball_y, ball_size, ball_size); 15 | //draw the player 16 | gb.display.fillRect(player_x, player_y, player_w, player_h); 17 | //draw the oponent 18 | gb.display.fillRect(oponent_x,oponent_y, oponent_w, oponent_h); 19 | } 20 | 21 | 22 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/4.Utilities/Settings/restoreSettings.ino: -------------------------------------------------------------------------------- 1 | void restoreSettings(){ 2 | token = 0xC001; 3 | strcpy(userName,"John Smith"); 4 | contrast = SCR_CONTRAST ; 5 | backlightMin = BACKLIGHT_MIN; 6 | backlightMax = BACKLIGHT_MAX; 7 | lightMin = AMBIENTLIGHT_MIN; 8 | lightMax = AMBIENTLIGHT_MAX; 9 | volumeMax = VOLUME_GLOBAL_MAX; 10 | volumeDefault = VOLUME_GLOBAL_MAX; 11 | startMenuTimer = START_MENU_TIMER; 12 | batteryCritic = BAT_LVL_CRITIC; 13 | batteryLow = BAT_LVL_LOW; 14 | batteryMed = BAT_LVL_MED; 15 | batteryFull = BAT_LVL_FULL; 16 | 17 | gb.display.clear(); 18 | gb.display.update(); 19 | gb.display.persistence = true; 20 | gb.display.println(F("Default settings\nrestored.")); 21 | pressAtoContinue(); 22 | } 23 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/5.Reference/buttons/timeHeld/timeHeld.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | void setup(){ 6 | gb.begin(); 7 | gb.titleScreen(F("timeHeld example")); 8 | } 9 | 10 | void loop(){ 11 | if(gb.update()){ 12 | gb.display.print("gb.buttons.timeHeld\n\n"); 13 | 14 | gb.display.print("BTN_A:"); 15 | gb.display.println(gb.buttons.timeHeld(BTN_A)); 16 | 17 | gb.display.print("BTN_B:"); 18 | gb.display.println(gb.buttons.timeHeld(BTN_B)); 19 | 20 | if(gb.buttons.pressed(BTN_C)){ 21 | gb.titleScreen(F("timeHeld example")); 22 | } 23 | } 24 | } 25 | 26 | 27 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/5.Reference/core/begin/begin.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | static unsigned char PROGMEM logo[]= 6 | { 7 | 8,8, 8 | B00000000, 9 | B00100100, 10 | B00011000, 11 | B01111110, 12 | B00111100, 13 | B01111110, 14 | B00111100, 15 | B00000000, 16 | }; 17 | 18 | void setup(){ 19 | // initialize the Gamebuino object 20 | gb.begin(); 21 | gb.titleScreen(F("Example game"), logo); 22 | } 23 | 24 | void loop(){ 25 | if(gb.update()){ 26 | gb.display.println("Hello world"); 27 | if(gb.buttons.pressed(BTN_C)){ 28 | gb.titleScreen(F("Example game"), logo); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/5.Reference/core/frameCount/frameCount.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | void setup(){ 6 | gb.begin(); 7 | gb.titleScreen(F("Count example")); 8 | } 9 | 10 | void loop(){ 11 | if(gb.update()){ 12 | int count = gb.frameCount; 13 | gb.display.println(count); 14 | 15 | if( (count / 8) % 2 ){ //true half of the time on 8 frames 16 | gb.display.println(F("BLINK")); 17 | } 18 | 19 | if(gb.buttons.pressed(BTN_C)){ 20 | gb.titleScreen(F("Count example")); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/5.Reference/core/getDefaultName/getDefaultName.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | char name[11]; 6 | 7 | void setup(){ 8 | gb.begin(); 9 | gb.titleScreen(F("Name example")); 10 | gb.getDefaultName(name); 11 | } 12 | 13 | void loop(){ 14 | if(gb.update()){ 15 | gb.display.print("Hello "); 16 | gb.display.print(name); 17 | } 18 | 19 | if(gb.buttons.pressed(BTN_C)){ 20 | gb.titleScreen(F("Name example")); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/5.Reference/core/keyboard/keyboard.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | char text[13] = "Default text"; 6 | 7 | void setup(){ 8 | gb.begin(); 9 | gb.titleScreen(F("Keyword example")); 10 | gb.keyboard(text, 13); 11 | } 12 | 13 | void loop(){ 14 | if(gb.update()){ 15 | gb.display.println(F("You wrote:")); 16 | gb.display.println(text); 17 | 18 | if(gb.buttons.pressed(BTN_C)){ 19 | gb.titleScreen(F("Keyword example")); 20 | gb.keyboard(text, 13); 21 | } 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/5.Reference/core/popup/popup.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | void setup(){ 6 | gb.begin(); 7 | gb.titleScreen(F("Popup example")); 8 | } 9 | 10 | void loop(){ 11 | if(gb.update()){ 12 | gb.display.println("Press \25 \26 or \27\nto see a popup"); 13 | if(gb.buttons.pressed(BTN_A)) 14 | gb.popup(F("A pressed"),5); 15 | if(gb.buttons.pressed(BTN_B)) 16 | gb.popup(F("B pressed"),5); 17 | if(gb.buttons.pressed(BTN_C)) 18 | gb.popup(F("C pressed"),5); 19 | } 20 | 21 | if(gb.buttons.pressed(BTN_C)){ 22 | gb.titleScreen(F("Popup example")); 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/5.Reference/core/update/update.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | void setup(){ 6 | gb.begin(); 7 | gb.titleScreen(F("Update example")); 8 | } 9 | 10 | void loop(){ 11 | while(1){ //loops forever 12 | if(gb.update()){ //update everything 13 | 14 | //put your game here. I will run at a fixed frequency (20 times per second by default) 15 | gb.display.println(F("First loop")); 16 | gb.display.println(F("Press \25 to continue")); 17 | 18 | if(gb.buttons.pressed(BTN_A)) //break out of the loop if C is pressed 19 | break; 20 | 21 | if(gb.buttons.pressed(BTN_C)){ 22 | gb.titleScreen(F("Update example")); 23 | } 24 | } 25 | } 26 | 27 | while(1){ //loops forever 28 | if(gb.update()){ //update everything 29 | 30 | //put your game here. I will run at a fixed frequency (20 times per second by default) 31 | gb.display.println(F("Second loop")); 32 | gb.display.println(F("Press \25 to continue")); 33 | 34 | if(gb.buttons.pressed(BTN_A)) //break out of the loop if C is pressed 35 | break; 36 | 37 | if(gb.buttons.pressed(BTN_C)){ 38 | gb.titleScreen(F("Update example")); 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /libraries/TM1638/Gamebuino/examples/5.Reference/display/setFont/setFont.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | Gamebuino gb; 4 | 5 | // these two default fonts are already defined in the Gamebuino library 6 | // the "extern" modifier is used to be able to use a variable declared in another file 7 | extern const byte font3x3[]; //a really tiny font 8 | extern const byte font3x5[]; //a small but efficient font (default) 9 | extern const byte font5x7[]; //a large, comfy font 10 | 11 | void setup(){ 12 | // initialize the Gamebuino object 13 | gb.begin(); 14 | gb.display.setFont(font5x7); 15 | gb.titleScreen(F("Font size")); 16 | } 17 | 18 | void loop(){ 19 | if(gb.update()){ 20 | gb.display.setFont(font3x3); 21 | gb.display.println(F("The quick brown fox\njumps over the doge")); 22 | gb.display.setFont(font3x5); 23 | gb.display.print("3x5 font\n"); 24 | gb.display.fontSize = 2; 25 | gb.display.print("3x5 font\n"); 26 | gb.display.fontSize = 1; 27 | gb.display.setFont(font5x7); 28 | gb.display.print("5x7 font\n"); 29 | gb.display.fontSize = 2; 30 | gb.display.print("5x7 font\n"); 31 | gb.display.fontSize = 1; 32 | 33 | if(gb.buttons.pressed(BTN_C)){ 34 | gb.titleScreen(F("Font size")); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /libraries/TM1638/I2cMaster/examples/i2cScopeTest/i2cScopeTest.pde: -------------------------------------------------------------------------------- 1 | // this sketch is for tweaking soft i2c signals 2 | 3 | #include 4 | 5 | #define SCL_PIN 7 6 | #define SDA_PIN 8 7 | 8 | SoftI2cMaster i2c(SDA_PIN, SCL_PIN); 9 | 10 | // also test base class idea 11 | I2cMasterBase *bus; 12 | 13 | uint8_t mode; 14 | //------------------------------------------------------------------------------ 15 | void setup(void) { 16 | Serial.begin(9600); 17 | 18 | // convert softI2cMaster to TwoWireBase to test base class idea 19 | bus = &i2c; 20 | 21 | Serial.println("enter 0 for write, any other for read"); 22 | while (!Serial.available()); 23 | mode = Serial.read(); 24 | if (mode == '0') { 25 | Serial.println("Write Mode"); 26 | } else { 27 | Serial.println("Read Mode"); 28 | } 29 | } 30 | //------------------------------------------------------------------------------ 31 | void loop(void) { 32 | if (mode == '0') { 33 | bus->write(0X55); 34 | } else { 35 | bus->read(0); 36 | } 37 | delay(1); 38 | } 39 | -------------------------------------------------------------------------------- /libraries/TM1638/README.txt: -------------------------------------------------------------------------------- 1 | TM1638 library 2 | -------------- 3 | Ricardo Batista 4 | Email: rjbatista(at)gmail.com 5 | URL: http://code.google.com/p/tm1638-library/ 6 | 7 | A library for interacting an arduino with a TM1638/TM1640. 8 | 9 | Includes: 10 | - Support for the TM1638 and TM1640; 11 | - Helper methods for displaying numbers in decimal, hexadecimal and binary; 12 | - Support for multiple chained tm1638; 13 | - Reading simultaneous button presses; 14 | - Support for dimming the display and LEDs; 15 | - Support for writing text; 16 | - Support for module in inverted position. 17 | 18 | See: TM1638 Display/LED module at http://www.dealextreme.com/p/81873?r=68099021 19 | See: TM1640 Display module at http://www.dealextreme.com/p/104311?r=68099021 20 | 21 | USAGE NOTES 22 | ----------- 23 | 24 | Just put the files on a TM1638 directory under "arduino/libraries" on your arduino IDE instalation 25 | 26 | 27 | PROJECT HOME 28 | ------------ 29 | 30 | http://code.google.com/p/tm1638-library/ 31 | -------------------------------------------------------------------------------- /libraries/TM1638/RTClib/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For RTC 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | DateTime KEYWORD1 10 | RTC_DS1307 KEYWORD1 11 | RTC_Millis KEYWORD1 12 | 13 | ####################################### 14 | # Methods and Functions (KEYWORD2) 15 | ####################################### 16 | 17 | year KEYWORD2 18 | month KEYWORD2 19 | day KEYWORD2 20 | hour KEYWORD2 21 | minute KEYWORD2 22 | second KEYWORD2 23 | dayOfWeek KEYWORD2 24 | secondstime KEYWORD2 25 | unixtime KEYWORD2 26 | begin KEYWORD2 27 | adjust KEYWORD2 28 | isrunning KEYWORD2 29 | now KEYWORD2 30 | 31 | ####################################### 32 | # Constants (LITERAL1) 33 | ####################################### 34 | 35 | -------------------------------------------------------------------------------- /libraries/TM1638/examples/tm1638_one_module_example/tm1638_one_module_example.pde: -------------------------------------------------------------------------------- 1 | /* 2 | Library examples for TM1638. 3 | 4 | Copyright (C) 2011 Ricardo Batista 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the version 3 GNU General Public License as 8 | published by the Free Software Foundation. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | */ 18 | 19 | #include 20 | 21 | // define a module on data pin 8, clock pin 9 and strobe pin 7 22 | TM1638 module(8, 9, 7); 23 | 24 | void setup() { 25 | // display a hexadecimal number and set the left 4 dots 26 | module.setDisplayToHexNumber(0x1234ABCD, 0xF0); 27 | } 28 | 29 | void loop() { 30 | byte keys = module.getButtons(); 31 | 32 | // light the first 4 red LEDs and the last 4 green LEDs as the buttons are pressed 33 | module.setLEDs(((keys & 0xF0) << 8) | (keys & 0xF)); 34 | } 35 | -------------------------------------------------------------------------------- /libraries/TM1638/examples/tm1640_example/tm1640_example.pde: -------------------------------------------------------------------------------- 1 | /* 2 | Library examples for TM1640. 3 | 4 | Copyright (C) 2011 Ricardo Batista 5 | 6 | This program is free software: you can redistribute it and/or modify 7 | it under the terms of the version 3 GNU General Public License as 8 | published by the Free Software Foundation. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | */ 18 | #include // required because the way arduino deals with libraries 19 | #include 20 | 21 | // define a module on data pin 3, clock pin 2 22 | TM1640 module(3, 2); 23 | 24 | void setup() 25 | { 26 | // nothing to do here 27 | } 28 | 29 | void loop() 30 | { 31 | char text[17]; 32 | 33 | sprintf(text, "testing %u", millis()); 34 | 35 | module.setDisplayToString(text); 36 | } 37 | -------------------------------------------------------------------------------- /libraries/TM1638/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For TM1638 Lib 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | TM16XX KEYWORD1 10 | TM1638 KEYWORD1 11 | TM1640 KEYWORD1 12 | InvertedTM1638 KEYWORD1 13 | 14 | ####################################### 15 | # Methods and Functions (KEYWORD2) 16 | ####################################### 17 | 18 | setupDisplay KEYWORD2 19 | setDisplayToHexNumber KEYWORD2 20 | setDisplayToDecNumber KEYWORD2 21 | setDisplayToBinNumber KEYWORD2 22 | setDisplayDigit KEYWORD2 23 | setDisplay KEYWORD2 24 | clearDisplay KEYWORD2 25 | setDisplayToString KEYWORD2 26 | setLED KEYWORD2 27 | setLEDs KEYWORD2 28 | getButtons KEYWORD2 29 | sendCommand KEYWORD2 30 | sendData KEYWORD2 31 | sendChar KEYWORD2 32 | send KEYWORD2 33 | receive KEYWORD2 34 | 35 | ####################################### 36 | # Constants (LITERAL1) 37 | ####################################### 38 | TM1638_COLOR_RED LITERAL1 39 | TM1638_COLOR_GREEN LITERAL1 40 | -------------------------------------------------------------------------------- /libraries/TM1638/petit_fatfs/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _INTEGER 6 | 7 | #if 0 8 | #include 9 | #else 10 | 11 | /* These types must be 16-bit, 32-bit or larger integer */ 12 | typedef int INT; 13 | typedef unsigned int UINT; 14 | 15 | /* These types must be 8-bit integer */ 16 | typedef signed char CHAR; 17 | typedef unsigned char UCHAR; 18 | typedef unsigned char BYTE; 19 | 20 | /* These types must be 16-bit integer */ 21 | typedef short SHORT; 22 | typedef unsigned short USHORT; 23 | typedef unsigned short WORD; 24 | typedef unsigned short WCHAR; 25 | 26 | /* These types must be 32-bit integer */ 27 | typedef long LONG; 28 | typedef unsigned long ULONG; 29 | typedef unsigned long DWORD; 30 | 31 | /* Boolean type */ 32 | typedef enum { FALSE = 0, TRUE } BOOL; 33 | 34 | #endif 35 | 36 | #define _INTEGER 37 | #endif 38 | -------------------------------------------------------------------------------- /libraries/TM1638/petit_fatfs/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Petit FatFs 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | FILINFO KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | begin KEYWORD2 16 | open_file KEYWORD2 17 | read_file KEYWORD2 18 | open_dir KEYWORD2 19 | open KEYWORD2 20 | read_dir KEYWORD2 21 | lseek_file KEYWORD2 22 | stream_file KEYWORD2 23 | setup_stream KEYWORD2 24 | rewind_dir KEYWORD2 25 | up_dir KEYWORD2 26 | cur_dir KEYWORD2 27 | 28 | ####################################### 29 | # Instances (KEYWORD2) 30 | ####################################### 31 | 32 | PFFS KEYWORD2 33 | 34 | ####################################### 35 | # Constants (LITERAL1) 36 | ####################################### -------------------------------------------------------------------------------- /libraries/TM1638/tinyFAT/HW_AVR.h: -------------------------------------------------------------------------------- 1 | #if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 2 | uint8_t _SS = 53; 3 | uint8_t _SS_HW = 53; 4 | uint8_t _MOSI = 51; 5 | uint8_t _MISO = 50; 6 | uint8_t _SCK = 52; 7 | #else 8 | uint8_t _SS = 10; 9 | uint8_t _SS_HW = 10; 10 | uint8_t _MOSI = 11; 11 | uint8_t _MISO = 12; 12 | uint8_t _SCK = 13; 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /libraries/TM1638/tinyFAT/HW_AVR_defines.h: -------------------------------------------------------------------------------- 1 | // *** Hardwarespecific defines *** 2 | #define cbi(reg, bitmask) *reg &= ~bitmask 3 | #define sbi(reg, bitmask) *reg |= bitmask 4 | #define pulse_high(reg, bitmask) sbi(reg, bitmask); cbi(reg, bitmask); 5 | #define pulse_low(reg, bitmask) cbi(reg, bitmask); sbi(reg, bitmask); 6 | 7 | #define cport(port, data) port &= data 8 | #define sport(port, data) port |= data 9 | 10 | #define swap(type, i, j) {type t = i; i = j; j = t;} 11 | 12 | #define regtype volatile uint8_t 13 | #define regsize uint8_t 14 | -------------------------------------------------------------------------------- /libraries/TM1638/tinyFAT/keywords.txt: -------------------------------------------------------------------------------- 1 | file KEYWORD1 2 | 3 | initFAT KEYWORD2 4 | findFirstFile KEYWORD2 5 | findNextFile KEYWORD2 6 | openFile KEYWORD2 7 | readBinary KEYWORD2 8 | readLn KEYWORD2 9 | writeLn KEYWORD2 10 | closeFile KEYWORD2 11 | exists KEYWORD2 12 | rename KEYWORD2 13 | delFile KEYWORD2 14 | create KEYWORD2 15 | setSSpin KEYWORD2 16 | 17 | DE LITERAL1 18 | BS LITERAL1 19 | MBR LITERAL1 20 | currFile LITERAL1 21 | buffer LITERAL1 22 | NO_ERROR LITERAL1 23 | ERROR_NO_MORE_FILES LITERAL1 24 | ERROR_FILE_NOT_FOUND LITERAL1 25 | ERROR_ANOTHER_FILE_OPEN LITERAL1 26 | ERROR_NO_FILE_OPEN LITERAL1 27 | ERROR_MBR_READ_ERROR LITERAL1 28 | ERROR_MBR_SIGNATURE LITERAL1 29 | ERROR_MBR_INVALID_FS LITERAL1 30 | ERROR_BOOTSEC_READ_ERROR LITERAL1 31 | ERROR_BOOTSEC_SIGNATURE LITERAL1 32 | ERROR_NO_FILE_OPEN LITERAL1 33 | ERROR_WRONG_FILEMODE LITERAL1 34 | FILE_IS_EMPTY LITERAL1 35 | BUFFER_OVERFLOW LITERAL1 36 | EOF LITERAL1 37 | FILEMODE_BINARY LITERAL1 38 | FILEMODE_TEXT_READ LITERAL1 39 | FILEMODE_TEXT_WRITE LITERAL1 40 | SPISPEED_LOW LITERAL1 41 | SPISPEED_MEDIUM LITERAL1 42 | SPISPEED_HIGH LITERAL1 43 | SPISPEED_VERYHIGH LITERAL1 44 | -------------------------------------------------------------------------------- /libraries/TM1638/tinyFAT/tinyFAT.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/TM1638/tinyFAT/tinyFAT.pdf -------------------------------------------------------------------------------- /libraries/TM1638/tinyFAT/version.txt: -------------------------------------------------------------------------------- 1 | Version: 2 | 1.0 30 Jan 2011 - initial release 3 | 1.1 31 Jan 2011 - added option to set SPI speed, and increased the default speed 4 | 2.0 12 Feb 2011 - added support for reading and writing text-files, in addition to a few support-functions 5 | 2.01 27 Mar 2011 - updated some of the examples to be compatible with ITDB02_Graph(16) v4.0 6 | 2.02 19 Apr 2011 - moved the ITDB02_Integration examples to the ITDB02_tinyFAT and ITDB02_tinyFAT16 libraries 7 | 2.1 26 Apr 2011 - added setSSpin() function 8 | 3.0 03 Jun 2012 - added Arduino 1.0 support 9 | rewritten all the low-level functions 10 | fixed a bug making it possible to read past the first 32MB 11 | -------------------------------------------------------------------------------- /libraries/USBHost/README.adoc: -------------------------------------------------------------------------------- 1 | = USB Host Library for Arduino = 2 | 3 | The USBHost library allows an Arduino Due and Zero board to appear as a USB host, enabling it to communicate with peripherals like USB mice and keyboards. 4 | 5 | For more information about this library please visit us at 6 | http://www.arduino.cc/en/Reference/USBHost 7 | 8 | == License == 9 | 10 | Copyright (c) 2012 Arduino LLC. All right reserved. 11 | Copyright (c) 2011 Circuits At Home, LTD. All rights reserved. 12 | 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 | -------------------------------------------------------------------------------- /libraries/USBHost/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For USBHost 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | MouseController KEYWORD1 MouseControllerConstructor 10 | USBHost KEYWORD1 USBHost 11 | KeyboardController KEYWORD1 KeyboardControllerConstructor 12 | 13 | ####################################### 14 | # Methods and Functions (KEYWORD2) 15 | ####################################### 16 | 17 | Task KEYWORD2 USBHostTask 18 | mouseMoved KEYWORD2 19 | mouseDragged KEYWORD2 20 | mousePressed KEYWORD2 21 | mouseReleased KEYWORD2 22 | getXChange KEYWORD2 23 | getYChange KEYWORD2 24 | getButton KEYWORD2 25 | keyPressed KEYWORD2 26 | keyReleased KEYWORD2 27 | getModifiers KEYWORD2 28 | getKey KEYWORD2 29 | getOemKey KEYWORD2 30 | 31 | 32 | ####################################### 33 | # Constants (LITERAL1) 34 | ####################################### 35 | 36 | -------------------------------------------------------------------------------- /libraries/USBHost/library.properties: -------------------------------------------------------------------------------- 1 | name=USBHost 2 | version=1.0.5 3 | author=Arduino 4 | maintainer=Arduino 5 | sentence=Allows the communication with USB peripherals like mice, keyboards, and thumbdrives. 6 | paragraph=The USBHost library allows an Arduino Due board to appear as a USB host, enabling it to communicate with peripherals like USB mice and keyboards. USBHost does not support devices that are connected through USB hubs. This includes some keyboards that have an internal hub. 7 | category=Device Control 8 | url=http://www.arduino.cc/en/Reference/USBHost 9 | architectures=sam 10 | -------------------------------------------------------------------------------- /libraries/WiFi101/README.adoc: -------------------------------------------------------------------------------- 1 | = Wifi library for the Arduino Wifi 101 Shield and MKR1000 board = 2 | 3 | This library implements a network driver for devices based 4 | on the ATMEL WINC1500 wifi module. 5 | 6 | For more information about this library please visit us at 7 | https://www.arduino.cc/en/Reference/WiFi101 8 | 9 | == License == 10 | 11 | Copyright (c) Arduino LLC. All right reserved. 12 | 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 | -------------------------------------------------------------------------------- /libraries/WiFi101/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For WiFi 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | WiFi KEYWORD1 10 | WiFi101 KEYWORD1 11 | Client KEYWORD1 12 | Server KEYWORD1 13 | 14 | ####################################### 15 | # Methods and Functions (KEYWORD2) 16 | ####################################### 17 | 18 | status KEYWORD2 19 | connect KEYWORD2 20 | connectSSL KEYWORD2 21 | write KEYWORD2 22 | available KEYWORD2 23 | read KEYWORD2 24 | flush KEYWORD2 25 | stop KEYWORD2 26 | connected KEYWORD2 27 | begin KEYWORD2 28 | beginMulti KEYWORD2 29 | disconnect KEYWORD2 30 | macAddress KEYWORD2 31 | localIP KEYWORD2 32 | subnetMask KEYWORD2 33 | gatewayIP KEYWORD2 34 | SSID KEYWORD2 35 | BSSID KEYWORD2 36 | RSSI KEYWORD2 37 | encryptionType KEYWORD2 38 | getResult KEYWORD2 39 | getSocket KEYWORD2 40 | poll KEYWORD2 41 | WiFiClient KEYWORD2 42 | WiFiServer KEYWORD2 43 | WiFiSSLClient KEYWORD2 44 | WiFiMDNSResponder KEYWORD2 45 | 46 | ####################################### 47 | # Constants (LITERAL1) 48 | ####################################### 49 | 50 | -------------------------------------------------------------------------------- /libraries/WiFi101/library.properties: -------------------------------------------------------------------------------- 1 | name=WiFi101 2 | version=0.9.0 3 | author=Arduino 4 | maintainer=Arduino 5 | sentence=Network driver for ATMEL WINC1500 module (used on Arduino/Genuino Wifi Shield 101 and MKR1000 boards) 6 | paragraph=This library implements a network driver for devices based on the ATMEL WINC1500 wifi module 7 | category=Communication 8 | url=http://www.arduino.cc/en/Reference/WiFi101 9 | architectures=* 10 | -------------------------------------------------------------------------------- /libraries/ad983x/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | *.obj 6 | 7 | # Precompiled Headers 8 | *.gch 9 | *.pch 10 | 11 | # Compiled Dynamic libraries 12 | *.so 13 | *.dylib 14 | *.dll 15 | 16 | # Fortran module files 17 | *.mod 18 | 19 | # Compiled Static libraries 20 | *.lai 21 | *.la 22 | *.a 23 | *.lib 24 | 25 | # Executables 26 | *.exe 27 | *.out 28 | *.app 29 | -------------------------------------------------------------------------------- /libraries/ad983x/README.md: -------------------------------------------------------------------------------- 1 | ad983x 2 | ====== 3 | 4 | Arduino library for interfacing with AD9833, AD9834 and AD9838 5 | -------------------------------------------------------------------------------- /libraries/petit_fatfs/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _INTEGER 6 | 7 | #if 0 8 | #include 9 | #else 10 | 11 | /* These types must be 16-bit, 32-bit or larger integer */ 12 | typedef int INT; 13 | typedef unsigned int UINT; 14 | 15 | /* These types must be 8-bit integer */ 16 | typedef signed char CHAR; 17 | typedef unsigned char UCHAR; 18 | typedef unsigned char BYTE; 19 | 20 | /* These types must be 16-bit integer */ 21 | typedef short SHORT; 22 | typedef unsigned short USHORT; 23 | typedef unsigned short WORD; 24 | typedef unsigned short WCHAR; 25 | 26 | /* These types must be 32-bit integer */ 27 | typedef long LONG; 28 | typedef unsigned long ULONG; 29 | typedef unsigned long DWORD; 30 | 31 | /* Boolean type */ 32 | typedef enum { FALSE = 0, TRUE } BOOL; 33 | 34 | #endif 35 | 36 | #define _INTEGER 37 | #endif 38 | -------------------------------------------------------------------------------- /libraries/petit_fatfs/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Petit FatFs 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | FILINFO KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | begin KEYWORD2 16 | open_file KEYWORD2 17 | read_file KEYWORD2 18 | open_dir KEYWORD2 19 | open KEYWORD2 20 | read_dir KEYWORD2 21 | lseek_file KEYWORD2 22 | stream_file KEYWORD2 23 | setup_stream KEYWORD2 24 | rewind_dir KEYWORD2 25 | up_dir KEYWORD2 26 | cur_dir KEYWORD2 27 | 28 | ####################################### 29 | # Instances (KEYWORD2) 30 | ####################################### 31 | 32 | PFFS KEYWORD2 33 | 34 | ####################################### 35 | # Constants (LITERAL1) 36 | ####################################### -------------------------------------------------------------------------------- /libraries/readme.txt: -------------------------------------------------------------------------------- 1 | For information on installing libraries, see: http://arduino.cc/en/Guide/Libraries 2 | -------------------------------------------------------------------------------- /libraries/tinyFAT/HW_AVR.h: -------------------------------------------------------------------------------- 1 | #if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 2 | uint8_t _SS = 53; 3 | uint8_t _SS_HW = 53; 4 | uint8_t _MOSI = 51; 5 | uint8_t _MISO = 50; 6 | uint8_t _SCK = 52; 7 | #else 8 | uint8_t _SS = 10; 9 | uint8_t _SS_HW = 10; 10 | uint8_t _MOSI = 11; 11 | uint8_t _MISO = 12; 12 | uint8_t _SCK = 13; 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /libraries/tinyFAT/HW_AVR_defines.h: -------------------------------------------------------------------------------- 1 | // *** Hardwarespecific defines *** 2 | #define cbi(reg, bitmask) *reg &= ~bitmask 3 | #define sbi(reg, bitmask) *reg |= bitmask 4 | #define pulse_high(reg, bitmask) sbi(reg, bitmask); cbi(reg, bitmask); 5 | #define pulse_low(reg, bitmask) cbi(reg, bitmask); sbi(reg, bitmask); 6 | 7 | #define cport(port, data) port &= data 8 | #define sport(port, data) port |= data 9 | 10 | #define swap(type, i, j) {type t = i; i = j; j = t;} 11 | 12 | #define regtype volatile uint8_t 13 | #define regsize uint8_t 14 | -------------------------------------------------------------------------------- /libraries/tinyFAT/keywords.txt: -------------------------------------------------------------------------------- 1 | file KEYWORD1 2 | 3 | initFAT KEYWORD2 4 | findFirstFile KEYWORD2 5 | findNextFile KEYWORD2 6 | openFile KEYWORD2 7 | readBinary KEYWORD2 8 | readLn KEYWORD2 9 | writeLn KEYWORD2 10 | closeFile KEYWORD2 11 | exists KEYWORD2 12 | rename KEYWORD2 13 | delFile KEYWORD2 14 | create KEYWORD2 15 | setSSpin KEYWORD2 16 | 17 | DE LITERAL1 18 | BS LITERAL1 19 | MBR LITERAL1 20 | currFile LITERAL1 21 | buffer LITERAL1 22 | NO_ERROR LITERAL1 23 | ERROR_NO_MORE_FILES LITERAL1 24 | ERROR_FILE_NOT_FOUND LITERAL1 25 | ERROR_ANOTHER_FILE_OPEN LITERAL1 26 | ERROR_NO_FILE_OPEN LITERAL1 27 | ERROR_MBR_READ_ERROR LITERAL1 28 | ERROR_MBR_SIGNATURE LITERAL1 29 | ERROR_MBR_INVALID_FS LITERAL1 30 | ERROR_BOOTSEC_READ_ERROR LITERAL1 31 | ERROR_BOOTSEC_SIGNATURE LITERAL1 32 | ERROR_NO_FILE_OPEN LITERAL1 33 | ERROR_WRONG_FILEMODE LITERAL1 34 | FILE_IS_EMPTY LITERAL1 35 | BUFFER_OVERFLOW LITERAL1 36 | EOF LITERAL1 37 | FILEMODE_BINARY LITERAL1 38 | FILEMODE_TEXT_READ LITERAL1 39 | FILEMODE_TEXT_WRITE LITERAL1 40 | SPISPEED_LOW LITERAL1 41 | SPISPEED_MEDIUM LITERAL1 42 | SPISPEED_HIGH LITERAL1 43 | SPISPEED_VERYHIGH LITERAL1 44 | -------------------------------------------------------------------------------- /libraries/tinyFAT/tinyFAT.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/libraries/tinyFAT/tinyFAT.pdf -------------------------------------------------------------------------------- /libraries/tinyFAT/version.txt: -------------------------------------------------------------------------------- 1 | Version: 2 | 1.0 30 Jan 2011 - initial release 3 | 1.1 31 Jan 2011 - added option to set SPI speed, and increased the default speed 4 | 2.0 12 Feb 2011 - added support for reading and writing text-files, in addition to a few support-functions 5 | 2.01 27 Mar 2011 - updated some of the examples to be compatible with ITDB02_Graph(16) v4.0 6 | 2.02 19 Apr 2011 - moved the ITDB02_Integration examples to the ITDB02_tinyFAT and ITDB02_tinyFAT16 libraries 7 | 2.1 26 Apr 2011 - added setSSpin() function 8 | 3.0 03 Jun 2012 - added Arduino 1.0 support 9 | rewritten all the low-level functions 10 | fixed a bug making it possible to read past the first 32MB 11 | -------------------------------------------------------------------------------- /libraries/tsunami/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | *.obj 6 | 7 | # Precompiled Headers 8 | *.gch 9 | *.pch 10 | 11 | # Compiled Dynamic libraries 12 | *.so 13 | *.dylib 14 | *.dll 15 | 16 | # Fortran module files 17 | *.mod 18 | 19 | # Compiled Static libraries 20 | *.lai 21 | *.la 22 | *.a 23 | *.lib 24 | 25 | # Executables 26 | *.exe 27 | *.out 28 | *.app 29 | -------------------------------------------------------------------------------- /libraries/tsunami/README.md: -------------------------------------------------------------------------------- 1 | tsunami-arduino 2 | =============== 3 | 4 | Arduino library for the Tsunami signal generator and frequency counter 5 | -------------------------------------------------------------------------------- /libraries/tsunami/examples/SineOutput/SineOutput.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * SineOutput.ino 3 | * Generates a 400Hz sine wave using the Tsunami. 4 | */ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | void setup() { 12 | // Initialize the Tsunami 13 | Tsunami.begin(); 14 | } 15 | 16 | void loop() { 17 | float frequency; 18 | while(1) { 19 | frequency = 110.0; 20 | while(frequency < 8000.0) { 21 | Tsunami.setFrequency(frequency); 22 | frequency *= 1.05946309; // 12th root of 2 23 | delay(500); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /libraries/tsunami/examples/WaveformMeasurement/WaveformMeasurement.ino: -------------------------------------------------------------------------------- 1 | /** 2 | * WaveformMeasurement.ino 3 | * Reports basic waveform measurements over USB serial. 4 | */ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | void setup() { 12 | Serial.begin(115200); 13 | 14 | // Initialize the Tsunami 15 | Tsunami.begin(); 16 | } 17 | 18 | void loop() { 19 | while(1) { 20 | Serial.print(Tsunami.measureFrequency()); 21 | Serial.print(" "); 22 | Serial.println(Tsunami.measurePeakVoltage()); 23 | delay(1000); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /macro_keyboard/macrokeyboard.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/macro_keyboard/macrokeyboard.fzz -------------------------------------------------------------------------------- /result-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/result-1.jpg -------------------------------------------------------------------------------- /sketch_nov17a/sketch_nov17a.ino: -------------------------------------------------------------------------------- 1 | // the setup routine runs once when you press reset: 2 | void setup() { 3 | // initialize the digital pin as an output. 4 | pinMode(0, OUTPUT); //LED on Model B 5 | pinMode(1, OUTPUT); //LED on Model A 6 | } 7 | 8 | // the loop routine runs over and over again forever: 9 | void loop() { 10 | digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level) 11 | digitalWrite(1, HIGH); 12 | delay(1000); // wait for a second 13 | digitalWrite(0, LOW); // turn the LED off by making the voltage LOW 14 | digitalWrite(1, LOW); 15 | delay(1000); // wait for a second 16 | } 17 | -------------------------------------------------------------------------------- /thermalprinter_expirements/adalogo.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /thermalprinter_expirements/adaqrcode.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /thermalprinter_expirements/me-amiga-small.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /weathermon/samplebackend.py: -------------------------------------------------------------------------------- 1 | # Simple Python back-end for weathermon.ino sketch 2 | # Requires pySerial library: http://pyserial.sourceforge.net 3 | 4 | import serial 5 | ser = serial.Serial('/dev/ttyUSB0', 9600) 6 | while 1: 7 | print ser.readline(), 8 | -------------------------------------------------------------------------------- /weathermon/weathermon.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/weathermon/weathermon.fzz -------------------------------------------------------------------------------- /weathermon/weathermon.ino: -------------------------------------------------------------------------------- 1 | /* 2 | Weather Monitor sketch for Arduino microcontrollers. 3 | Written by Gareth Halfacree for Computeractive. 4 | Requires the DHT library: http://playground.arduino.cc/Main/DHTLib 5 | Requires the BMP085 library: https://github.com/adafruit/Adafruit-BMP085-Library 6 | */ 7 | 8 | #include "Wire.h" 9 | #include "dht.h" 10 | #include "Adafruit_BMP085.h" 11 | 12 | Adafruit_BMP085 BMP; 13 | dht DHT; 14 | #define DHT22_PIN A3 15 | 16 | void setup() 17 | { 18 | Serial.begin(9600); 19 | BMP.begin(); 20 | pinMode(DHT22_PIN, INPUT); 21 | digitalWrite(DHT22_PIN, HIGH); 22 | Serial.println("Weather Monitor Data"); 23 | Serial.println(); 24 | Serial.println("Temperature,Relative Humidity,Pressure"); 25 | } 26 | 27 | void loop() 28 | { 29 | Serial.print(((DHT.temperature)+(BMP.readTemperature()))/2, 1); 30 | Serial.print(","); 31 | Serial.print(DHT.humidity, 1); 32 | Serial.print(","); 33 | Serial.println(BMP.readPressure()); 34 | delay(5000); 35 | } 36 | -------------------------------------------------------------------------------- /weathermon/weathermon_2.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/weathermon/weathermon_2.fzz -------------------------------------------------------------------------------- /weathermon/weatherstationlibraries.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghalfacree/Arduino-Sketches/3cff17ca9d7cfb61fcf14147e3e5dedf2e1957fe/weathermon/weatherstationlibraries.zip -------------------------------------------------------------------------------- /weathermonextra/weathermonextra.ino: -------------------------------------------------------------------------------- 1 | /* 2 | Weather Monitor sketch for Arduino microcontrollers. 3 | Written by Gareth Halfacree for Computeractive. 4 | Requires the DHT library: http://playground.arduino.cc/Main/DHTLib 5 | Requires the BMP085 library: https://github.com/adafruit/Adafruit-BMP085-Library 6 | */ 7 | 8 | #include "Wire.h" 9 | #include "dht.h" 10 | #include "Adafruit_BMP085.h" 11 | #include "TM1638.h" 12 | 13 | Adafruit_BMP085 BMP; 14 | dht DHT; 15 | #define DHT22_PIN A3 16 | unsigned int temp=0; 17 | 18 | void setup() 19 | { 20 | Serial.begin(9600); 21 | BMP.begin(); 22 | pinMode(DHT22_PIN, INPUT); 23 | digitalWrite(DHT22_PIN, HIGH); 24 | Serial.println("Weather Monitor Data"); 25 | Serial.println(); 26 | Serial.println("Temperature,Pressure"); 27 | } 28 | 29 | void loop() 30 | { 31 | TM1638 module(8, 9, 10); 32 | Serial.print(BMP.readTemperature()); 33 | temp=(BMP.readTemperature()); 34 | module.setDisplayToDecNumber(temp, 0, false); 35 | Serial.print(","); 36 | Serial.println(BMP.readPressure()); 37 | delay(5000); 38 | } 39 | --------------------------------------------------------------------------------