Brian Cooke
Brian Cooke
> IIRC the pigpio npm module needs to compile the pigpio C++ library on install, so I think it actually does require these libraries on install. It should be possible...
The issue here is that "P1_2" is defined twice in bone.js. Once [here](https://github.com/beagleboard/bonescript/blob/0.7.0/src/bone.js#L737-L758) and a second time [here](https://github.com/beagleboard/bonescript/blob/0.7.0/src/bone.js#L1892-L1902). The one found by `pinMode` is [this one](https://github.com/beagleboard/bonescript/blob/0.7.0/src/bone.js#L1892-L1902) which doesn't support mode...
>So I should be doing is to find corresponding BeagleBone pin number, and use it as the pin name to be passed to bonescript. >(P1.02 -> GPIO87 -> P8.29?) The...
> > I'm not 100% sure but I don't think this loop serves any purpose. > > _Maybe_ it was supposed to be `i2c_get_read_available`? That's just a (**very** uninformed) guess...
> On a side-note, I wonder if `tight_loop_contents()` ought to be being used inside that `do ... while` loop, if `timeout_check` is NULL? 🤷 This is likely to be true....
> EDIT: Also, if you're printing the bus_scan results to the USB stdio, then the bus_scan code might have finished running before the USB-enumeration process on your PC has finished?...
> > when I rerun the tool I cant communicate with COM port. Then I turn off and on Pico and I am able to connect with Pico's COM port....
Take a look at how [picod](https://github.com/joan2937/picod) does it, it may help. Part of the relevant code is [here](https://github.com/joan2937/picod/blob/master/DAEMON/picod.c#L1972-L1983). Most likely `SPI_SSPIMSC_RXIM_BITS` needs to be set to enable interrupts. The interrupt...
> do you know what i forgot to set? I'm afraid I don't.
> @fivdi Do you think this might be related to [raspberrypi/pico-sdk#336](https://github.com/raspberrypi/pico-sdk/issues/336) ? It's possible, but I think it's unlikely. If I had to guess, I'd say it's more likely to...