Example code is found in: /usr/share/doc/arduino-core/examples
Official Library code is found in: /usr/share/arduino/libraries
Libraries
/usr/share/arduino
├── arduinopc.jar
├── examples -> ../doc/arduino-core/examples
├── hardware
├── libraries
│ ├── EEPROM
│ │ ├── EEPROM.cpp
│ │ ├── EEPROM.h
│ │ ├── examples
│ │ │ ├── eeprom_clear
│ │ │ │ └── eeprom_clear.ino
│ │ │ ├── eeprom_read
│ │ │ │ └── eeprom_read.ino
│ │ │ └── eeprom_write
│ │ │ └── eeprom_write.ino
│ │ └── keywords.txt
│ ├── Esplora
│ │ ├── Esplora.cpp
│ │ ├── Esplora.h
│ │ ├── examples
│ │ │ ├── EsploraKart
│ │ │ │ └── EsploraKart.ino
│ │ │ ├── EsploraLedShow
│ │ │ │ └── EsploraLedShow.ino
│ │ │ ├── EsploraLedShow2
│ │ │ │ └── EsploraLedShow2.ino
│ │ │ ├── EsploraMusic
│ │ │ │ └── EsploraMusic.ino
│ │ │ ├── EsploraRemote
│ │ │ │ └── EsploraRemote.ino
│ │ │ └── EsploraTable
│ │ │ └── EsploraTable.ino
│ │ └── keywords.txt
│ ├── Ethernet
│ │ ├── Dhcp.cpp
│ │ ├── Dhcp.h
│ │ ├── Dns.cpp
│ │ ├── Dns.h
│ │ ├── EthernetClient.cpp
│ │ ├── EthernetClient.h
│ │ ├── Ethernet.cpp
│ │ ├── Ethernet.h
│ │ ├── EthernetServer.cpp
│ │ ├── EthernetServer.h
│ │ ├── EthernetUdp.cpp
│ │ ├── EthernetUdp.h
│ │ ├── examples
│ │ │ ├── BarometricPressureWebServer
│ │ │ │ └── BarometricPressureWebServer.ino
│ │ │ ├── ChatServer
│ │ │ │ └── ChatServer.ino
│ │ │ ├── DhcpAddressPrinter
│ │ │ │ └── DhcpAddressPrinter.ino
│ │ │ ├── DhcpChatServer
│ │ │ │ └── DhcpChatServer.ino
│ │ │ ├── DnsWebClient
│ │ │ │ └── DnsWebClient.ino
│ │ │ ├── PachubeClient
│ │ │ │ └── PachubeClient.ino
│ │ │ ├── PachubeClientString
│ │ │ │ └── PachubeClientString.ino
│ │ │ ├── TelnetClient
│ │ │ │ └── TelnetClient.ino
│ │ │ ├── TwitterClient
│ │ │ │ └── TwitterClient.ino
│ │ │ ├── UdpNtpClient
│ │ │ │ └── UdpNtpClient.ino
│ │ │ ├── UDPSendReceiveString
│ │ │ │ └── UDPSendReceiveString.ino
│ │ │ ├── WebClient
│ │ │ │ └── WebClient.ino
│ │ │ ├── WebClientRepeating
│ │ │ │ └── WebClientRepeating.ino
│ │ │ └── WebServer
│ │ │ └── WebServer.ino
│ │ ├── keywords.txt
│ │ ├── util.h
│ │ └── utility
│ │ ├── socket.cpp
│ │ ├── socket.h
│ │ ├── w5100.cpp
│ │ └── w5100.h
│ ├── Firmata
│ │ ├── Boards.h
│ │ ├── examples
│ │ │ ├── AllInputsFirmata
│ │ │ │ └── AllInputsFirmata.ino
│ │ │ ├── AnalogFirmata
│ │ │ │ └── AnalogFirmata.ino
│ │ │ ├── EchoString
│ │ │ │ └── EchoString.ino
│ │ │ ├── I2CFirmata
│ │ │ │ └── I2CFirmata.ino
│ │ │ ├── OldStandardFirmata
│ │ │ │ └── OldStandardFirmata.ino
│ │ │ ├── ServoFirmata
│ │ │ │ └── ServoFirmata.ino
│ │ │ ├── SimpleAnalogFirmata
│ │ │ │ └── SimpleAnalogFirmata.ino
│ │ │ ├── SimpleDigitalFirmata
│ │ │ │ └── SimpleDigitalFirmata.ino
│ │ │ └── StandardFirmata
│ │ │ └── StandardFirmata.ino
│ │ ├── Firmata.cpp
│ │ ├── Firmata.h
│ │ ├── keywords.txt
│ │ └── TODO.txt
│ ├── LiquidCrystal
│ │ ├── examples
│ │ │ ├── Autoscroll
│ │ │ │ └── Autoscroll.ino
│ │ │ ├── Blink
│ │ │ │ └── Blink.ino
│ │ │ ├── Cursor
│ │ │ │ └── Cursor.ino
│ │ │ ├── CustomCharacter
│ │ │ │ └── CustomCharacter.ino
│ │ │ ├── Display
│ │ │ │ └── Display.ino
│ │ │ ├── HelloWorld
│ │ │ │ └── HelloWorld.ino
│ │ │ ├── Scroll
│ │ │ │ └── Scroll.ino
│ │ │ ├── SerialDisplay
│ │ │ │ └── SerialDisplay.ino
│ │ │ ├── setCursor
│ │ │ │ └── setCursor.ino
│ │ │ └── TextDirection
│ │ │ └── TextDirection.ino
│ │ ├── keywords.txt
│ │ ├── LiquidCrystal.cpp
│ │ └── LiquidCrystal.h
│ ├── SD
│ │ ├── examples
│ │ │ ├── CardInfo
│ │ │ │ └── CardInfo.ino
│ │ │ ├── Datalogger
│ │ │ │ └── Datalogger.ino
│ │ │ ├── DumpFile
│ │ │ │ └── DumpFile.ino
│ │ │ ├── Files
│ │ │ │ └── Files.ino
│ │ │ ├── listfiles
│ │ │ │ └── listfiles.ino
│ │ │ └── ReadWrite
│ │ │ └── ReadWrite.ino
│ │ ├── File.cpp
│ │ ├── keywords.txt
│ │ ├── README.txt
│ │ ├── SD.cpp
│ │ ├── SD.h
│ │ └── utility
│ │ ├── FatStructs.h
│ │ ├── Sd2Card.cpp
│ │ ├── Sd2Card.h
│ │ ├── Sd2PinMap.h
│ │ ├── SdFat.h
│ │ ├── SdFatmainpage.h
│ │ ├── SdFatUtil.h
│ │ ├── SdFile.cpp
│ │ ├── SdInfo.h
│ │ └── SdVolume.cpp
│ ├── Servo
│ │ ├── examples
│ │ │ ├── Knob
│ │ │ │ └── Knob.ino
│ │ │ └── Sweep
│ │ │ └── Sweep.ino
│ │ ├── keywords.txt
│ │ ├── Servo.cpp
│ │ └── Servo.h
│ ├── SoftwareSerial
│ │ ├── examples
│ │ │ ├── SoftwareSerialExample
│ │ │ │ └── SoftwareSerialExample.ino
│ │ │ └── TwoPortReceive
│ │ │ └── TwoPortReceive.ino
│ │ ├── keywords.txt
│ │ ├── SoftwareSerial.cpp
│ │ └── SoftwareSerial.h
│ ├── SPI
│ │ ├── examples
│ │ │ ├── BarometricPressureSensor
│ │ │ │ ├── BarometricPressureSensor
│ │ │ │ │ └── BarometricPressureSensor.ino
│ │ │ │ └── BarometricPressureSensor.ino
│ │ │ └── DigitalPotControl
│ │ │ └── DigitalPotControl.ino
│ │ ├── keywords.txt
│ │ ├── SPI.cpp
│ │ └── SPI.h
│ ├── Stepper
│ │ ├── examples
│ │ │ ├── MotorKnob
│ │ │ │ └── MotorKnob.ino
│ │ │ ├── stepper_oneRevolution
│ │ │ │ └── stepper_oneRevolution.ino
│ │ │ ├── stepper_oneStepAtATime
│ │ │ │ └── stepper_oneStepAtATime.ino
│ │ │ └── stepper_speedControl
│ │ │ └── stepper_speedControl.ino
│ │ ├── keywords.txt
│ │ ├── Stepper.cpp
│ │ └── Stepper.h
│ ├── WiFi
│ │ ├── examples
│ │ │ ├── ConnectNoEncryption
│ │ │ │ └── ConnectNoEncryption.ino
│ │ │ ├── ConnectWithWEP
│ │ │ │ └── ConnectWithWEP.ino
│ │ │ ├── ConnectWithWPA
│ │ │ │ └── ConnectWithWPA.ino
│ │ │ ├── ScanNetworks
│ │ │ │ └── ScanNetworks.ino
│ │ │ ├── SimpleWebServerWiFi
│ │ │ │ └── SimpleWebServerWiFi.ino
│ │ │ ├── WifiChatServer
│ │ │ │ └── WifiChatServer.ino
│ │ │ ├── WifiPachubeClient
│ │ │ │ └── WifiPachubeClient.ino
│ │ │ ├── WifiPachubeClientString
│ │ │ │ └── WifiPachubeClientString.ino
│ │ │ ├── WifiTwitterClient
│ │ │ │ └── WifiTwitterClient.ino
│ │ │ ├── WifiWebClient
│ │ │ │ └── WifiWebClient.ino
│ │ │ ├── WifiWebClientRepeating
│ │ │ │ └── WifiWebClientRepeating.ino
│ │ │ └── WifiWebServer
│ │ │ └── WifiWebServer.ino
│ │ ├── keywords.txt
│ │ ├── utility
│ │ │ ├── debug.h
│ │ │ ├── server_drv.cpp
│ │ │ ├── server_drv.h
│ │ │ ├── socket.c
│ │ │ ├── socket.h
│ │ │ ├── spi_drv.cpp
│ │ │ ├── spi_drv.h
│ │ │ ├── wifi_drv.cpp
│ │ │ ├── wifi_drv.h
│ │ │ ├── wifi_spi.h
│ │ │ ├── wl_definitions.h
│ │ │ └── wl_types.h
│ │ ├── WiFiClient.cpp
│ │ ├── WiFiClient.h
│ │ ├── WiFi.cpp
│ │ ├── WiFi.h
│ │ ├── WiFiServer.cpp
│ │ └── WiFiServer.h
│ └── Wire
│ ├── examples
│ │ ├── digital_potentiometer
│ │ │ └── digital_potentiometer.ino
│ │ ├── master_reader
│ │ │ └── master_reader.ino
│ │ ├── master_writer
│ │ │ └── master_writer.ino
│ │ ├── SFRRanger_reader
│ │ │ └── SFRRanger_reader.ino
│ │ ├── slave_receiver
│ │ │ └── slave_receiver.ino
│ │ └── slave_sender
│ │ └── slave_sender.ino
│ ├── keywords.txt
│ ├── utility
│ │ ├── twi.c
│ │ └── twi.h
│ ├── Wire.cpp
│ └── Wire.h
├── reference -> ../doc/arduino-core/reference
└── tools
├── howto.txt
└── Mangler
└── src
└── Mangler.java
141 directories, 325 files
Examples
/usr/share/doc/arduino-core/examples
├── 01.Basics
│ ├── AnalogReadSerial
│ │ └── AnalogReadSerial.ino
│ ├── BareMinimum
│ │ └── BareMinimum.ino
│ ├── Blink
│ │ └── Blink.ino
│ ├── DigitalReadSerial
│ │ └── DigitalReadSerial.ino
│ ├── Fade
│ │ └── Fade.ino
│ └── ReadAnalogVoltage
│ └── ReadAnalogVoltage.ino
├── 02.Digital
│ ├── BlinkWithoutDelay
│ │ └── BlinkWithoutDelay.ino
│ ├── Button
│ │ └── Button.ino
│ ├── Debounce
│ │ └── Debounce.ino
│ ├── DigitalIputPullup
│ │ └── DigitalIputPullup.ino
│ ├── StateChangeDetection
│ │ └── StateChangeDetection.ino
│ ├── toneKeyboard
│ │ ├── pitches.h
│ │ └── toneKeyboard.ino
│ ├── toneMelody
│ │ ├── pitches.h
│ │ └── toneMelody.ino
│ ├── toneMultiple
│ │ ├── pitches.h
│ │ └── toneMultiple.ino
│ └── tonePitchFollower
│ └── tonePitchFollower.ino
├── 03.Analog
│ ├── AnalogInOutSerial
│ │ └── AnalogInOutSerial.ino
│ ├── AnalogInput
│ │ └── AnalogInput.ino
│ ├── AnalogWriteMega
│ │ └── AnalogWriteMega.ino
│ ├── Calibration
│ │ └── Calibration.ino
│ ├── Fading
│ │ └── Fading.ino
│ └── Smoothing
│ └── Smoothing.ino
├── 04.Communication
│ ├── ASCIITable
│ │ └── ASCIITable.ino
│ ├── Dimmer
│ │ └── Dimmer.ino
│ ├── Graph
│ │ └── Graph.ino
│ ├── MIDI
│ │ └── Midi.ino
│ ├── MultiSerialMega
│ │ └── MultiSerialMega.ino
│ ├── PhysicalPixel
│ │ └── PhysicalPixel.ino
│ ├── ReadASCIIString
│ │ └── ReadASCIIString.ino
│ ├── SerialCallResponse
│ │ └── SerialCallResponse.ino
│ ├── SerialCallResponseASCII
│ │ └── SerialCallResponseASCII.ino
│ ├── SerialEvent
│ │ └── SerialEvent.ino
│ └── VirtualColorMixer
│ └── VirtualColorMixer.ino
├── 05.Control
│ ├── Arrays
│ │ └── Arrays.ino
│ ├── ForLoopIteration
│ │ └── ForLoopIteration.ino
│ ├── IfStatementConditional
│ │ └── IfStatementConditional.ino
│ ├── switchCase
│ │ └── switchCase.ino
│ ├── switchCase2
│ │ └── switchCase2.ino
│ └── WhileStatementConditional
│ └── WhileStatementConditional.ino
├── 06.Sensors
│ ├── ADXL3xx
│ │ └── ADXL3xx.ino
│ ├── Knock
│ │ └── Knock.ino
│ ├── Memsic2125
│ │ └── Memsic2125.ino
│ └── Ping
│ └── Ping.ino
├── 07.Display
│ ├── barGraph
│ │ └── barGraph.ino
│ └── RowColumnScanning
│ └── RowColumnScanning.ino
├── 08.Strings
│ ├── CharacterAnalysis
│ │ └── CharacterAnalysis.ino
│ ├── StringAdditionOperator
│ │ └── StringAdditionOperator.ino
│ ├── StringAppendOperator
│ │ └── StringAppendOperator.ino
│ ├── StringCaseChanges
│ │ └── StringCaseChanges.ino
│ ├── StringCharacters
│ │ └── StringCharacters.ino
│ ├── StringComparisonOperators
│ │ └── StringComparisonOperators.ino
│ ├── StringConstructors
│ │ └── StringConstructors.ino
│ ├── StringIndexOf
│ │ └── StringIndexOf.ino
│ ├── StringLength
│ │ └── StringLength.ino
│ ├── StringLengthTrim
│ │ └── StringLengthTrim.ino
│ ├── StringReplace
│ │ └── StringReplace.ino
│ ├── StringStartsWithEndsWith
│ │ └── StringStartsWithEndsWith.ino
│ ├── StringSubstring
│ │ └── StringSubstring.ino
│ ├── StringToInt
│ │ └── StringToInt.ino
│ └── StringToIntRGB
│ └── StringToIntRGB.ino
├── 09.USB
│ ├── Keyboard
│ │ ├── KeyboardLogout
│ │ │ └── KeyboardLogout.ino
│ │ ├── KeyboardMessage
│ │ │ └── KeyboardMessage.ino
│ │ ├── KeyboardReprogram
│ │ │ └── KeyboardReprogram.ino
│ │ └── KeyboardSerial
│ │ └── KeyboardSerial.ino
│ ├── KeyboardAndMouseControl
│ │ └── KeyboardAndMouseControl.ino
│ └── Mouse
│ ├── ButtonMouseControl
│ │ └── ButtonMouseControl.ino
│ └── JoystickMouseControl
│ └── JoystickMouseControl.ino
├── 10.StarterKit
│ ├── p02_SpaceshipInterface
│ │ └── p02_SpaceshipInterface.ino
│ ├── p03_LoveOMeter
│ │ └── p03_LoveOMeter.ino
│ ├── p04_ColorMixingLamp
│ │ └── p04_ColorMixingLamp.ino
│ ├── p05_ServoMoodIndicator
│ │ └── p05_ServoMoodIndicator.ino
│ ├── p06_LightTheremin
│ │ └── p06_LightTheremin.ino
│ ├── p07_Keyboard
│ │ └── p07_Keyboard.ino
│ ├── p08_DigitalHourglass
│ │ └── p08_DigitalHourglass.ino
│ ├── p09_MotorizedPinwheel
│ │ └── p09_MotorizedPinwheel.ino
│ ├── p10_Zoetrope
│ │ └── p10_Zoetrope.ino
│ ├── p11_CrystalBall
│ │ └── p11_CrystalBall.ino
│ ├── p12_KnockLock
│ │ └── p12_KnockLock.ino
│ ├── p13_TouchSensorLamp
│ │ └── p13_TouchSensorLamp.ino
│ ├── p14_TweakTheArduinoLogo
│ │ └── p14_TweakTheArduinoLogo.ino
│ └── p15_HackingButtons
│ └── p15_HackingButtons.ino
└── ArduinoISP
└── ArduinoISP.ino
93 directories, 84 files