This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//mc6800 clock generator | |
//device: PIC12F1822(5V) | |
//compiler: HI-TECH PICC 9.80a | |
#include <pic.h> | |
__CONFIG(FOSC_INTOSC & WDTE_OFF); | |
void main(){ | |
CCP1SEL = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ ws2811.s - ws2811 handler | |
@ LPC810@24MHz | |
@ void ws2811Write(const uint8_t *data, uint8_t count) | |
.cpu cortex-m0plus | |
.thumb | |
.syntax unified | |
.file "ws2811.s" | |
.text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AQM1248 hadling example for Raspberry Pi | |
// via file system version | |
// compile: cc aqm1248fs.c -o aqm1248fs | |
// execute: sudo ./aqm1248fs | |
#include <stdint.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AQM1248 hadling example for Raspberry Pi | |
// via register version | |
// compile: cc aqm1248.c -o aqm1248 | |
// execute: sudo ./aqm1248 | |
#include <stdint.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wink.c | |
// LED blink test | |
// hardware: LED with resistor shall be connected to GPIOxx | |
// compile: cc wink.c -o wink | |
// execute: sudo ./wink xx | |
#include <stdio.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <errno.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
file name: register.c | |
description: Raspberry Pi BCM2835 peripheral registers handling example | |
compile: cc register.c -o register | |
execute: sudo ./register | |
Tetsuya Suzuki, 2013 | |
*/ | |
#include <stdio.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
gpio_poll.c | |
Raspberry Pi GPIO polling example. | |
Hardware: A switch (hardware pulluped) shall be connected to GPIO25. | |
Compile: cc gpio_poll.c -o gpio_poll | |
Execute: sudo ./gpio_poll.c | |
*/ | |
#include <fcntl.h> | |
#include <stdio.h> |