![]() ![]() This is a library for the Annikken Andee for Android ![]() BSD license, check license.txt for more information All text above must be included in any redistribution. Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit! Written by Limor Fried/Ladyada for Adafruit Industries. This is a super slick way to add a display without all the wiring hassle. That's half of the pins available on a classic Arduino! With this in mind, we wanted to make it easier for people to get these LCD into their projects so we devised a shield that lets you control a 16x2 Character LCD, up to 3 backlight pins AND 5 keypad pins using only the two I2C pins on the Arduino! The best part is you don't really lose those two pins either, since you can stick i2c-based sensors, RTCs, etc and have them share the I2C bus. Unfortunately, these LCDs do require quite a few digital pins, 6 to control the LCD and then perhaps another 3 to control the RGB backlight for a total of 9 pins. We really like the range of LCDs we stock in the shop, such as our classic blue & white as well as the fancy RGB negative and RGB positive. This is a library for the Adafruit RGB 16x2 LCD Shield Pick one up at the Adafruit shop! -> This new Adafruit shield makes it easy to use a 16x2 Character LCD. BSD license, check license.txt for more information All text above must be included in any redistribution It allows you to communicate and interact with our mobile app using our own custom protocol.Īn interrupt-based GPS library for no-parsing-required use This is the Adafruit GPS library - the ultimate GPS library for the ultimate GPS module! Tested and works great with the Adafruit Ultimate GPS module using MTK33x9 chipset -> These modules use TTL serial to communicate, 2 pins are required to interface Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit! Written by Limor Fried/Ladyada for Adafruit Industries. It is the interface to your smartphone's accessories, sensors and virtual shields. TC0->TC_CHANNEL.An Arduino library for 1Sheeld. TC0->TC_CHANNEL.TC_IER |= TC_IER_LDRAS | TC_IER_LDRBS // Trigger interruption on Load RA and load RB | TC_CMR_LDRB_FALLING // load RB on falling edge of trigger input | TC_CMR_LDRA_RISING // load RA on rising edge of trigger input | TC_CMR_ABETRG // TIOA is used as the external trigger TC0->TC_CHANNEL.TC_CMR = TC_CMR_TCCLKS_TIMER_CLOCK1 // capture mode, MCK/2, clk on rising edge PMC->PMC_PCER0 |= PMC_PCER0_PID28 // Timer Counter 0 channel 1 IS TC1 TC0->TC_CHANNEL.TC_CCR = TC_CCR_SWTRG | TC_CCR_CLKEN // Software trigger and enable TC0->TC_CHANNEL.TC_RA = 25 // Duty cycle of PWM pulses = (TC_RA/TC_RC) * 100 % TC0->TC_CHANNEL.TC_RC = 50 // Frequency of PWM pulses = MCK/2/TC_RC | TC_CMR_ACPC_SET // Set TIOA0 on RC compare match | TC_CMR_ACPA_CLEAR // Clear TIOA0 on RA compare match | TC_CMR_WAVSEL_UP_RC // UP mode with automatic trigger on RC Compare TC0->TC_CHANNEL.TC_CMR = TC_CMR_TCCLKS_TIMER_CLOCK1 // MCK/2, clk on rising edge PIOB->PIO_ABSR |= PIO_ABSR_P25 | PIO_ABSR_P27 PMC->PMC_PCER0 |= PMC_PCER0_PID27 // Timer Counter 0 channel 0 IS TC0 Volatile uint32_t CaptureCountA, CaptureCountB, Period, Duty * a jumper needs to be installed between pin 2 (TIOA0) and pin A7 (TC0 channel 1 TIOA pin) */ To capture 1 pulse per second, a simple attachInterrupt() will do the job.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |