On Mon, Nov 17, 2014 at 9:23 PM, John Mladenik <[email protected]> wrote:
> OK I got this one, simpleLED.html to work
>
> https://gist.github.com/jadonk/f89a0f1f0ddef06777de
>
>
> once I got Ethernet connected.  But it ONLY works for USR0-USR3 and not for
> any other GPIO.  If I change the USR to p9_23 it will not toggle p9_23 does
> anyone know why?  I can toggle p9_23 using Python or js but not from the web
> page.

The current BoneScript library tries to load a device tree overlay to
enable the GPIO pin mode. That might cause it to have some delay or
not work the first time you try. The roadmap to fix this is to switch
to cape-universal. That'll be included in the next BoneScript release.

If it works directly with the BoneScript library, it should work the
same via the web interface. All the calls on the web interface are
asynchronous, however, so you might be calling them before the pinMode
completes.

>
>
> On Saturday, November 15, 2014 10:27:53 PM UTC-8, John Mladenik wrote:
>>
>> I have tried at least 6 different tutorials to turn an LED on and off
>> through a web page.   None of them work and all get one error or another.
>>
>> The most common one is right after the line
>> var socket = io.connect();
>>  Uncaught ReferenceError: io is not defined.
>>
>> I followed the instruction to install socket.io 2 or 3 times and think
>> this worked successfully.
>>
>> I did have to change the src line with socket.io.js in it to stop that
>> from getting an error and I changed it to
>>
>> <script
>> src="192.168.7.2:3000/preview/node_modules/socket.io/node_modules/socket.io-client/socket.io.js">
>> </script>
>>
>> I have a new Rev C Beaglebone Black running Debian.  Any suggestion or any
>> link or example I can try that can do something as simple as control a GPIO
>> from a web page?
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to