Resetting the I2C address to 36?

Forums:

OK i messed up with

cd ~/ultraborg
python
import UltraBorg
UltraBorg.SetNewAddress(0x11)

which worked just fine, then realised that I dont need to do this, I only have 1 UltraBorg. I then tried to reset it to 36 (0x24) so that all the example scripts would work without having to edit to UB1 UB2 etc. but I cant seem to get it to go back to factory default?

Also when I try to run a python script importing PicoBorgRev and UltraBorg either one comes up as not found depending which directory I'm in.. diddyred or ultraborg?

Guessing I need to set the path or something when using

...
import UltraBorg
import PicoBorgRev

Unlike import time etc which seem globally available?

piborg's picture

You are nearly there with resetting the address, but it is 0x36 instead of 36:

cd ~/ultraborg
python
import UltraBorg
UltraBorg.SetNewAddress(0x36)

The easiest way to use both is to copy the missing script into the same folder.
For example:
cp ~/ultraborg/UltraBorg.py ~/diddyred/
should copy the UltraBorg module so that it can be used from the ~/diddyred folder.

Thank you.

Subscribe to Comments for "Resetting the I2C address to 36?"