@dewald To install Node-RED you require an Omega2Pro details are in the Documentation
To control an LED strip, take a look at Led Chain Package, once installed and configured you communicate with the LED strip by writing to a file. There is a load of discussion about this package on this forum, here is a Recent Discussion
@Antony The easiest method is to just use subprocess function to call the command from within your python code. I think many people will just add the the command to their /etc/rc.local so the pin is set to gpio when the device boots.
good call!
@luz said in SPI SSD1306 Display boot problem:
maybe it would make sense to mark the MOSI pin red in the datasheet too?
Released v1.9 of Omega2S datasheet and v1.2 of Omega2 datasheet that includes SPI MOSI as a pin that's important for boot and must be floating.
@luz said in SPI SSD1306 Display boot problem:
And btw., the MT7688 datasheet links you have in the onion docs no longer work
Thanks for the heads up! Updated the link to a copy that Onion hosts, so this should work indefinitely.
@Antony Take a look at /etc/hotplug.d/00-netstate, you can use hotplug to execute commands on state change for the wwan interface. Below is a sample of a script I used to update the listen iterface for nginx web server, when the wwan interface connected to wifi, you could update it for the action ifdown:
echo "Starting interace hotplug ${DEVICE} Action: ${ACTION} Interface: ${INTERFACE}" >> /tmp/cblog
if [ "$ACTION" = "ifup" -a "$INTERFACE" = "wwan" ]; then
echo "IFUP ${DEVICE}" >> /tmp/cblog
echo "Run ip setup script for device: ${DEVICE}" >> /tmp/cblog
echo "listen $(ip -o -4 a s apcli0 | awk '{ print $4 }' | cut -d/ -f1):80;" > /etc/nginx/listen_ip
fi
@Oziesin it looks like your device is running the Omega2 LTE firmware. In this firmware, the device is omega2lte.
However, it's compatible with all omega2p firmware.
Add a -f argument to your sysupgrade command and it should work fine.
the pyserial package is so old it doesnt even support context manager to handle serial connections.
did you work how if it is possible to update it? 3.9 or 3.10 would be great (even 3.8!).
in a pinch you could use setuptools to install an updated package, but you're replying on them being compatible with 3.6 now.