[C.CC USERS] AREF

Matt Jadud matt at jadud.com
Sun Jun 24 01:48:57 BST 2012


Hi Aaron,

On Sat, Jun 23, 2012 at 11:32 AM, Aaron Ryan <bringfire at gmail.com> wrote:
> It looks like many of my needs have already been written in a more
> concurrent fashion than I would have written them, which is nice.

Possibly. Or, if you prefer: that was a first-run. There is room for
improvement, no doubt.

>>    adc(GYRO.X, AREF, sig.gyro[X]?, gyro.out[X]!)
> This was exactly what I was starting to write, and the channel arrays in
> this PROC portend some questions in the near future.

The ADC proc is in plumbing.module, I think. Those are a SIGNAL in and
a... probably an INT out. The arrays were simply because we wanted to
be able to do three channels (for the three ADC dimensions). That
doesn't explain it... but, if you were to look in some of the occam
documentation about channel arrays, then you'll see that it's a
language feature, not a "plumbing" thing.

adc (PIN, AREF, sig?, out!)

is the pattern for that process.

> On a side note, I am trying to wirelessly program the Arduino 328 with an
> XBee series 1 radio...I have been able to send and receive serial data using
> occam wirelessly after the Arduino is programmed, but I was hoping to be
> able to program the board after it is embedded.

Hm. No. However, you shouldn't have any particular problems. On the
host side, you'll identify a Bluetooth device (is it Bluetooth?) as a
serial port, and therefore the IDE should work "as normal." I haven't
used the XBee stuff before (I have some waiting for this purpose), but
if it acts like a serial port, there shouldn't be any problems.

(He says...)

Cheers,
Matt



More information about the users mailing list