Propeller 2 Quick Byte Code Examples
320×240 LCD Driver for ILI9341 Controller and XPT2046 Touch Screen
Description The driver from forum members Greg LaPolla and Cluso99 make it very easy to draw lines, blocks, circles, graphs, …
XBee RF Transparent and API Mode Demo
Description This Quick Byte includes three spin2 code archives and objects for using Digi XBee Modules in transparent or API …
Five Buttons On One Pin
Description This program demonstrates how to series-connect five pushbuttons over one I/O pin, so that they can all be read …
Goertzel Operation with Ultrasonic Transducers
Description The P2 Goertzel circuit measures up to four ADC input signals for magnitude and phase correlation of four internal …
LEDs – Beyond the Basics
Description Most of us begin our experiments with microcontrollers by blinking an LED; this is the microcontroller version of the …
DVI/VGA Text Driver Demo
Description Forum member rogloh created this easy-to-use text driver API layer that simplifies the setup in his VGA/DVI/TV driver for …
Tetris
Description Tetris was contributed by forum member Rayman, and incorporates the Ahle2 simpleSound engine. This code was written in C …
Simple Sound Engine Demo
Description simpleSound is an extension of the reSound object for playing MOD file formats (the first file format for tracked …
Colorful Terminal Output with ANSI Escape Sequences
Description Okay, the title is a mouthful, but the result of using an ANSI-compatible terminal and sending ANSI Escape Sequences …
Starting Your P2 Project with a Spin2 Template
Description It’s common for writers – fiction, non-fiction, and even code writers – to be excited about starting a project …
PCF8574 I2C LCD Demo
Description The PCF8574 I2C LCD uses just two lines to interface: SDA (serial data) and SCL (serial clock), plus 5VDC …
P2 Edge 16 MB Flash Reader and Explorer Utility
Description The P2 Edge (#P2-EC) has a 16MB Flash memory (Winbond part W25Q128JV) with a Serial Peripheral Interface (SPI) to …
Other P2 Community Code Examples
Games
- Pong – by Reinhard and rogloh
- Space Invaders – by ozpropdev
- Cordic Crickets – by ozpropdev
Drivers
Make sure to check out the different discussions in TAQOZ, fastspin, p2gcc as most have build on drivers available.
Protocol
serial
- smartpin demo – 10 MBaud example by Chip Gracey
- fullduplex smart serial with interrupt – by msrobot
USB
SPI
- TAQOZ SPI driver – bit banged SPI driver, part of TAQOZ by Peter Jakacki
I2C
PWM
- smartpin example – example PWM driver by Chip Gracey
TCP/UDP
Devices
Goertzel
- goertzel_to_hdmi – example by Chip Gracey
SD-card
- fsrw – by ke4pjw
- fsrw – by cheezus
- WS2812 smartpin driver – by ozpropdev
Display
NTSC
- 256×192 – example driver by Chip Gracey
- 256×192 interrupt driven – example driver by Chip Gracey
VGA
- 640x480x8bpp – example driver by Chip Gracey
- 640x480x16bpp – example driver by Chip Gracey
- 640×480 & 800×600 tile driver – by Eric R. Smith
- 1920x1080x4bpp – by cluso99
- Hyperram XGA 720P&1080P – by Rayman
HDMI
- Video Player
- full screen player – by ke4pjw
- TAQOZ video player – by Peter Jakacki
Tools
Logic Analyzer
- logic analyzer – by ozpropdev
- logic analyzer – by cluso99