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
# Name: Makefile | |
# | |
# A Makefile for the ATtiny84. | |
# | |
# electronut.in | |
DEVICE = attiny84 | |
CLOCK = 8000000 | |
PROGRAMMER = -c usbtiny | |
OBJECTS = main.o |
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
# blinking an LED with Raspberry Pi. LED is connected on pin 18 (GPIO5) | |
# | |
# run this as: | |
# sudo python test.py | |
# | |
# electronut.in | |
import time | |
import RPi.GPIO as GPIO |
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
################################################################################ | |
# conway.py | |
# | |
# Author: electronut.in | |
# | |
# Description: | |
# | |
# A simple Python/matplotlib implementation of Conway's Game of Life. | |
################################################################################ |
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
############################################################################### | |
# rpi-cat9532.py | |
# | |
# Author: electronut.in | |
# | |
# Description: | |
# | |
# Raspberry Pi communicating with I2C PWM chip CAT9532 | |
# (16-bit Programmable LED Dimmer) | |
# |
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
############################################################################### | |
# speech-test.py | |
# | |
# Author: electronut.in | |
# | |
# Description: | |
# | |
# Testing Raspberry Pi audio using pyttsx - Python Cross-platform | |
# text-to-speech wrapper | |
# |
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
# backup script for Raspberry Pi | |
# | |
# electronut.in | |
# | |
#!/bin/bash | |
echo Backing up RPi \#1... | |
# set this to Raspberry Pi IP address | |
PI_ADDR="192.168.4.31" |
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
""" | |
ledctrl.py | |
A simple example for communicating with a Raspberry Pi from you phone's | |
browser. Uses the Bottle Python web framework, and jQuery AJAX. | |
Author: Mahesh Venkitachalam / electronut.in | |
""" |
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
//---------------------------------------------------------- | |
// dagu_ultrasonic.ino | |
// | |
// Simple test of ultrasonic sensor HC-SR04 connected to | |
// Dagu mini driver (arduino compatible board) and a two | |
// wheel Dagu chassis. | |
// | |
// Author: Mahesh Venkitachalam | |
// Website: electronut.in | |
//---------------------------------------------------------- |
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
""" | |
ardu_alert.py | |
Alert Arduino via serial port when an event happens on the host computer. | |
Author: Mahesh Venkitachalam | |
Website: electronut.in | |
""" |
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
// ardu_alert.ino | |
// | |
// read serial port and turn leds on/off | |
// | |
// Mahesh Venkitachalam | |
// electronut.in | |
#include "Arduino.h" |