I am trying to read sensor (MPU 6050) data using Raspberry Pi 3 and Julia using the PiGPIO package. I have connected my Pi to the pigpio daemon over a network.
When I am trying to use “i2c_write_byte” function something like i2c_write_byte(pi, 2, 0x19), I end up with the following error:
InexactError: check_top_bit(UInt32, 4294967271)
 throw_inexacterror(::Symbol, ::Any, ::UInt32) at ./boot.jl:567
 check_top_bit at ./boot.jl:581 [inlined]
 toInt32 at ./boot.jl:630 [inlined]
 Type at ./boot.jl:716 [inlined]
 convert at ./number.jl:7 [inlined]
 _u2i(::UInt32) at /home/pi/.julia/packages/PiGPIO/e5h1O/src/pi.jl:72
 i2c_write_byte(::Pi, ::Int32, ::UInt8) at /home/pi/.julia/packages/PiGPIO/e5h1O/src/i2c.jl:99
 top-level scope at In:1
I tried to look up the function in the boot.jl file in the line mentioned but wasn’t able to figure it out since I am new to coding. Could someone please explain what the actual error is and also how to rectify it if possible?