My favorites | Sign in
Project Home Downloads Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- Title: Blink-Two-LED using Crumboard shield
-- Author: Sébastien Lelong, Copyright (c) 2008..2009, all rights reserved.
-- Adapted-by:
-- Compiler: 2.4l
-- Revision: $Revision$
--
-- This file is part of jaluino (http://jaluino.googlecode.com)
-- Released under the BSD license (http://www.opensource.org/licenses/bsd-license.php)
--
-- Description: this program blinks the two LEDs available on Crumboard shield,
-- one after the other
--
-- Shield: crumboard
--

include jaluino_medium
include delay

-- describe hardware setup by declaring plugged jumpers
const bit CRUMBOARD_LED1_JP1 = on -- we've put a jumper in JP1
const bit CRUMBOARD_LED2_JP2 = on -- and also on JP2
-- now we can include crumboard library
include crumboard_shield
crumboard_init()

-- everything is setup, ready to be used
crumboard_led1 = off
crumboard_led2 = off

forever loop
crumboard_led1 = on
delay_1ms(250)
crumboard_led1 = off

crumboard_led2 = on
delay_1ms(250)
crumboard_led2 = off
end loop

--

Change log

r373 by sebastien.lelong on Jul 31, 2011   Diff
added Revision: field in jal source files
Go to: 
Project members, sign in to write a code review

Older revisions

r61 by sebastien.lelong on Dec 13, 2009   Diff
another way to build jaluino
libraries: hardware setup declares
connected jumpers, init() procedure
setups directions (in this case,
crumboard shield) for what it can,
...
r59 by sebastien.lelong on Dec 7, 2009   Diff
proposal for crumboard library &
sample
All revisions of this file

File info

Size: 1004 bytes, 40 lines

File properties

svn:keywords
Revision
Powered by Google Project Hosting