Beagle Board - beagleboard.org

Smalltalk

Doing some basic tasks with Squeak Smalltalk virtual machine on BeagleBone

Updated instructions for running Squeak on BeagleBone Black Debian images:

  1. apt-get install squeak-vm unzip
  2. wget http://squeakvm.org/unix/release/Squeak4.2-10966.zip
  3. unzip Squeak4.2-10966.zip
  4. squeak Squeak4.2-10966.image &

Code for demo:

graph1 := GraphMorph new.
graph1 openInWorld.
graph1 extent: 700@500.
graph1 clear.

analog1 := FileStream readOnlyFileNamed: '/sys/devices/ocp.3/helper.15/AIN0'.

[1000 timesRepeat: [
	| lightValue |
	lightValue := (analog1 contents) asInteger.
	graph1 appendValue: lightValue.
	(Delay forMilliseconds: 20) wait.
	]] fork.



Homepage: http://wiki.squeak.org/squeak/3616
Registrar: jkridner.wordpress.com


Tags: library;bbblack;bbone;
Projected created on: Thu May 01 2014 23:24:09 GMT-0000 (UTC)
Submitted by: jkridner.wordpress.com
Last updated on: Thu May 01 2014 23:25:00 GMT-0000 (UTC)

7951
7952