[C.CC USERS] [Fwd: Re: Question's]

a.vreugdenhil at hccnet.nl a.vreugdenhil at hccnet.nl
Fri Apr 13 21:24:04 BST 2018


Hello Sergio.

A couple month's ago i buy the book "A tutorial introduction to OCCAM
programming" from Dick Pountain and David May. But also I read the
-Plumbing for Arduino- workbook. Now I try to program Occam on the Arduino
but I have some question's.
In the little program below, why only the firste LED is blinking and the
second and last one NOT ??
It drive's me crazy ?? I try a lot, different type of CHAN between the
PROC FLIP but I can not understand why only the first LED is blinking.

Mayby someone on the forum have a idee how I can continue my program.

Greeting Abraham Vreugdenhil.


#INCLUDE "plumbing.module"

PROC FLIP(CHAN SIGNAL in?, VAL INT pin, CHAN SIGNAL out!)
  CHAN LEVEL g:
  PAR
    toggle (HIGH, in?, g!)            -- LED start with HIGH !! -works
good !!-
    SEQ
      digital.output (pin, g?)       -- komt van toggle en zet led aan / uit
      out ! SIGNAL
:

PROC main ()
  CHAN SIGNAL b, c, d, e:
  PAR
    tick(1000, b!)
    FLIP(b?, 8, c!)       -- First LED is blinking
    FLIP(c?, 9, d!)       -- Second LED goes ON and is NOT blinking
    FLIP(d?, 10, e!)      -- Last LED goes ON and is NOT blinking
:


Helo Abraham some years ago I tried to write some programs in occam
for arduino uno. Perhaps you may be interested in the
"An introduction to the occam Language" tutorial. You can easily find
it on the Internet.
Greetings Sergio De Sordi


> Hello All.
>
> I am Abraham Vreugdenhil. The last couple month's I be intrested in
> Trnasputer's and the OCCAM  language. So I found the concurency website
> with Plumbing for Arduino. I like it so I build a little "shield" around
> the Arduino-Nano and the Arduino-Uno. But now i ran into some "problem's"
> or question's.
> Are here still some people who can give me some suggestion's to continue
> my way to learn about Occam on the Arduino?
>
> Greeting Abraham Vreugdenhil.
>
>
> _______________________________________________
> users mailing list
> users at concurrency.cc
> http://lists.concurrency.cc/mailman/listinfo/users





More information about the users mailing list