Re: [beagleboard] Dont see two partitions on SDcrad as shown in the lectures when a latest debian image is flashed on SD card

2020-05-05 Thread jennifer Dsilva
> > Hi sir, I wanted to know Why this Debian images creates only one ROOTFS parrtition in SD card after flashing it? Regards, Jennifer -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard"

[beagleboard] Re: libpruio (fast and easy D/A - I/O)

2020-05-05 Thread Hans Leeuw
Op dinsdag 5 mei 2020 07:13:43 UTC+2 schreef TJF: > > Hi Hans! > > Am Dienstag, 5. Mai 2020 00:47:22 UTC+2 schrieb Hans Leeuw: >> >> I have upgraded and I get this warning while compiling my program (using >> rb): >> > > I avoid updates, if possible. It takes too much time to optimize the boot

Re: [beagleboard] Re: Can not connect via USB

2020-05-05 Thread Robert Nelson
On Tue, May 5, 2020 at 10:35 AM KenUnix wrote: > > > So if I understand correctly all I need to do is add the following lines in > my network/interfaces file ? >> >> iface usb0 inet static >> address 192.168.137.2 >> netmask 255.255.0.0 >> network 192.168.137.0 >> gateway

[beagleboard] Re: Can not connect via USB

2020-05-05 Thread KenUnix
So if I understand correctly all I need to do is add the following lines in my network/interfaces file ? > > iface usb0 inet static > address 192.168.137.2 > netmask 255.255.0.0 > network 192.168.137.0 > gateway 192.168.137.1 > dns-nameservers 8.8.8.8 > post-up route add

Re: [beagleboard] TIDL import utility not supported on BBAI?

2020-05-05 Thread alvaro . navarroguz
Hi! I am dealing with the same error you showed in your post: "fatal error: schema_generated.h: No such file or directory" Were you able to solve it? I cannot find the .h file in the tidlModelImport folder. Thanks in advance! El martes, 14 de enero de 2020, 5:19:44 (UTC+1), Jason Kridner

Re: [beagleboard] RE: Trying to Understand Complicated Source w/ Classes from the ServoCape and Python3/ServoCape and the PCA9685

2020-05-05 Thread Mala Dies
from smbus2 import SMBus from ServoLib import Pca9685 from time import sleep i2c2 = SMBus("/dev/i2c-2") x = Pca9685(i2c2, 0b11) x.read_reg(2) x.write_reg(2, 1) x.read_regs(2, 5) x.write_regs(2, len(int(0)) angle = int(input("What would your favorite angle be now? ") if angle <= 180 or

Re: [beagleboard] RE: Trying to Understand Complicated Source w/ Classes from the ServoCape and Python3/ServoCape and the PCA9685

2020-05-05 Thread Mala Dies
Hello, Okay. So, I will go and research this idea more. I have been reading at python.org under classes so far. I just found the w3schools.com page for Python. I will try this page online and return service if things are getting too odd for me. Seth P.S. Thank you. On Tuesday, May 5, 2020

Re: [beagleboard] RE: Trying to Understand Complicated Source w/ Classes from the ServoCape and Python3/ServoCape and the PCA9685

2020-05-05 Thread jonnymo
Oh, the error you are seeing is that 'int' does not have a len. What you may try is to convert it to a string and then get the len: Ex: int_len = len(str(0) or Ex: For values greater than 0. int_len = int(math.log10(int_val)) + 1 But I am not sure why you are getting the length of 0. I

Re: [beagleboard] RE: Trying to Understand Complicated Source w/ Classes from the ServoCape and Python3/ServoCape and the PCA9685

2020-05-05 Thread jonnymo
When you call the methods in the Pca9685 you need to pass the appropriate parameters. Ex: read_reg( self, reg ) You need to pass a reg value to this. * reg_val = some_reg_val* * read_result = x.read_reg(reg_val) * * print(read_result)* I can't see the rest of your code so I am not

Re: [beagleboard] RE: Trying to Understand Complicated Source w/ Classes from the ServoCape and Python3/ServoCape and the PCA9685

2020-05-05 Thread jonnymo
My reference to reg_val was just a reference and an example. I have no idea what you need for the value which is something you need to research. I have no idea where you got the original code from, but you should start there. Jon On Tue, May 5, 2020 at 5:08 PM Mala Dies wrote: > from smbus2

Re: [beagleboard] RE: Trying to Understand Complicated Source w/ Classes from the ServoCape and Python3/ServoCape and the PCA9685

2020-05-05 Thread Mala Dies
Hello, Okay. So, I am using smbus2 in python3 for the communication of the i2c interface on the ServoCape (PCA9685). So: from smbus2 import SMBus from ServoLib import Pca9685 from time import sleep i2c2 = SMBus("/dev/i2c-2") x = Pca9685(i2c2, 0b11) So, everything under this first

[beagleboard] RE: Trying to Understand Complicated Source w/ Classes from the ServoCape and Python3/ServoCape and the PCA9685

2020-05-05 Thread Mala Dies
Hello, I have a, to me, piece of complicated text in Python3 format. Anyway... I have been unable to make the conversion of the wrapper to another Python3 file. So, here is the source in case you are interested: from time import sleep # relevant registers MODE1 = 0x00 MODE2 =

Re: [beagleboard] RE: Trying to Understand Complicated Source w/ Classes from the ServoCape and Python3/ServoCape and the PCA9685

2020-05-05 Thread jonnymo
If you provide a link to the source of this that would help. But, basically in your own Python code you would first import the class Ex: * from source_file import Pca9685* The you could create an instance of this like: * my_servo_control = Pca9685(bus_num, addr_val)* You could need to

Re: [beagleboard] Dont see two partitions on SDcrad as shown in the lectures when a latest debian image is flashed on SD card

2020-05-05 Thread Robert Nelson
On Tue, May 5, 2020, 4:28 AM jennifer Dsilva wrote: > Hi sir, > > > I wanted to know Why this Debian images creates only one ROOTFS > parrtition in SD card after flashing it? > Why? It's more reliable, more space efficient, and new users are less likely to delete files they can't see, thus