Hi Matt, thanks for your reply.<br>I seems that writing the C libraries would be the best option.<br>I have some programming experience in C, but I don&#39;t know where to start. I have never programmed a driver, but I would like to help.<br>
I understand that it would be something like translating the C++ libraries included in the arduino IDE to C, right ?<br><br>Hachi<br><br><div class="gmail_quote">2012/9/4 Matt Jadud <span dir="ltr">&lt;<a href="mailto:matt@jadud.com" target="_blank">matt@jadud.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Hachi,<br>
<div class="im"><br>
On Tue, Sep 4, 2012 at 1:16 PM, Hachi &lt;<a href="mailto:hemanzur@gmail.com">hemanzur@gmail.com</a>&gt; wrote:<br>
&gt; The only problem is that for this project I need to use the ethernet port,<br>
&gt; and the SD card reader/writer on the ethernet shield.<br>
&gt; Is there any way to use this shield with occam-pi ? Is it possible to use<br>
&gt; arduino libraries embedded in occam-pi to use the shield ?<br>
<br>
</div>There are not, yet, probably because none of us own an ethernet shield.<br>
<br>
(I think that&#39;s true.)<br>
<br>
It is certainly *possible*. Within just a few small limitations<br>
(mostly limited to speed), we can do anything in occam-pi that can be<br>
done in C.<br>
<br>
Reading this page:<br>
<br>
<a href="http://arduino.cc/en/Main/ArduinoEthernetShield" target="_blank">http://arduino.cc/en/Main/ArduinoEthernetShield</a><br>
<br>
and assuming you are working with that ethernet shield, the answer is<br>
that we have some work to do. Specifically, I don&#39;t think we (yet)<br>
have a SPI implementation written. This could be a good opportunity to<br>
work on one, however, which would give us library support for 1) SPI<br>
devices, and 2) specifically, this device.<br>
<br>
The other answer is &quot;yes,&quot; we can embed C code into our runtime. This<br>
grows the size of the runtime for everyone (generally bad), and to<br>
embed &quot;arduino&quot; code specifically, we have to roll everything over to<br>
C++... which is messy, and has other problems associated with it.<br>
(And, again, it grows the VM.) So we could, but it is a rather bad<br>
path for us to go down at this point.<br>
<br>
As a dev group, we haven&#39;t been working very consistently of late,<br>
primarily due to moves between jobs, etc. Would there be interest in<br>
picking up some ethernet shields and putting together:<br>
<br>
1. A SPI library,<br>
2. An SD library, and<br>
3. An Ethernet library?<br>
<br>
The SD and Ethernet libraries would be very useful to me, certainly.<br>
And Hachi, you would (of course) be encouraged to join in that effort<br>
as well, if you were so inclined.<br>
<br>
Cheers,<br>
Matt<br>
</blockquote></div><br>