Go to advanced search

by brianjester
Sun Jan 13, 2013 6:40 am
Forum: Teaching and learning resources
Topic: CAS Educational Manual: errata
Replies: 13
Views: 9746

Re: CAS Educational Manual: errata

I can only run the LED circuit Python program led.py with: sudo python3 led.py It throws the following exception if I run it with sudo python led.py Here's the output as soon as I hit Enter (return): Traceback (most recent call last): File 'led.py', line 10 in <module> command = input("Press return ...
by brianjester
Sun Jan 13, 2013 5:26 am
Forum: Teaching and learning resources
Topic: CAS Educational Manual: errata
Replies: 13
Views: 9746

Re: CAS Educational Manual: errata

Croston,

Thank you for the update, I was about to submit the fix for the "LED circuit", as:

Code: Select all

GPIO.setmode(GPIO.BCM)
But I'll try your snippet:

Code: Select all

GPIO.setmode(GPIO.BOARD)
Brian Jester
by brianjester
Thu Jan 10, 2013 7:42 am
Forum: Beginners
Topic: How to set time and date
Replies: 5
Views: 10229

How to set time and date

I didn't see an option to set the time and date on the raspi-config menu, only locale and timezone. Is there (a non command line way) to set time with the Wheezy distros from the GUI?

My workaround was to set time/date with: "sudo date -u MMDDhhmmCCYY"

Brian Jester
by brianjester
Thu Jan 10, 2013 7:25 am
Forum: Beginners
Topic: Sound in Scratch
Replies: 21
Views: 11913

Re: Sound in Scratch

vn00325,

When I launched /usr/bin/scratch with a "-x" on the shebang line (line #1), I saw on the console:

snd_pcm_writei returned -1

This was after the fix to line 89 for "-vm-sound-alsa".

Brian Jester
by brianjester
Thu Jan 10, 2013 7:21 am
Forum: Beginners
Topic: Sound in Scratch
Replies: 21
Views: 11913

Re: Sound in Scratch

Sharks58, The fix mostly worked for me as well. (forcing line 89 of /usr/bin/scratch: VMOPTIONS='$VMOPTIONS -vm-sound-alsa') The exceptions were: 1. On a subsequent launch, I noticed that MP3 sounds (Cat.MP3) didn't play, and WAV sounds (Bird.WAV) did. 2. On a subsequent launch, the RaspberryPi hung...
by brianjester
Wed Jan 09, 2013 6:02 pm
Forum: Scratch
Topic: Scratch locks up? (when playing sound?)
Replies: 54
Views: 20196

Re: Scratch locks up? (when playing sound?)

We're using: -RASPBRRY-MODB-512M -2012-12-16-wheezy-raspbian.img -HDMI video -USB mouse and keyboard -1.7A power supply -8G Patriot SD card -RJ45 not connected We've had Scratch hang while editing a "costume" for a sprite in the "paint editor". We have also seen it hang during exercises in the Raspb...

Go to advanced search