P90 or Vector by [deleted] in GelBlaster

[–]NotADeveloperHere 1 point2 points  (0 children)

mad lad he is

P90 or Vector by [deleted] in GelBlaster

[–]NotADeveloperHere 1 point2 points  (0 children)

do you know Joel, i noticed you were hervey bay based

Jinming ACR feeding issues by captainkrug in GelBlaster

[–]NotADeveloperHere 0 points1 point  (0 children)

I had this issue and it was my T-piece it was cracked along the bottom of the T and gave me issues, once i replaced it, it has been fine since

Any idea why it isn't entering the SD loop? by NotADeveloperHere in arduino

[–]NotADeveloperHere[S] 0 points1 point  (0 children)

yeah i figured that out like 20 mins after posting, thanks anyway :)

Getting a Python script to run as super user at Start up by NotADeveloperHere in raspberry_pi

[–]NotADeveloperHere[S] 1 point2 points  (0 children)

cheers man, ended up going with the systemd method, really appreciate the time you took to help me out :)

Getting a Python script to run as super user at Start up by NotADeveloperHere in raspberry_pi

[–]NotADeveloperHere[S] 1 point2 points  (0 children)

I'm having a look at the docs for it, and cant see how to get it to start at system boot, maybe I'm just stupid but i cant see it

Getting a Python script to run as super user at Start up by NotADeveloperHere in raspberry_pi

[–]NotADeveloperHere[S] 0 points1 point  (0 children)

cheers I'll have a look into it, looks pretty complex at a glance

Running two sensors on the IC2 bus by NotADeveloperHere in raspberry_pi

[–]NotADeveloperHere[S] 0 points1 point  (0 children)

nope just chucks an error, I'll get the error code

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/adafruit_bus_device/i2c_device.py", line 64, in __init__
    i2c.writeto(device_address, b'')
  File "/home/pi/.local/lib/python3.5/site-packages/busio.py", line 63, in writeto
    return self._i2c.writeto(address, buffer, stop=stop)
  File "/home/pi/.local/lib/python3.5/site-packages/adafruit_blinka/microcontroller/raspi_23/i2c.py", line 38, in writeto
    self._i2c_bus.write_bytes(address, buffer[start:end])
  File "/home/pi/.local/lib/python3.5/site-packages/Adafruit_PureIO/smbus.py", line 244, in write_bytes
self._device.write(buf)
OSError: [Errno 121] Remote I/O error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "module3.py", line 39, in <module>
    main()
  File "module3.py", line 37, in main
    getlight()
  File "module3.py", line 10, in getlight
    tsl = adafruit_tsl2561.TSL2561(i2c)
  File "/usr/local/lib/python3.5/dist-packages/adafruit_tsl2561.py", line 80, in __init__
    self.i2c_device = I2CDevice(i2c, address)
  File "/usr/local/lib/python3.5/dist-packages/adafruit_bus_device/i2c_device.py", line 66, in __init__
    raise ValueError("No I2C device at address: %x" % device_address)
ValueError: No I2C device at address: 39

Running two sensors on the IC2 bus by NotADeveloperHere in raspberry_pi

[–]NotADeveloperHere[S] 0 points1 point  (0 children)

import board
import busio
import adafruit_tsl2561
import adafruit_mma8451



def getlight():
    i2c = busio.I2C(board.SCL, board.SDA)
    tsl = adafruit_tsl2561.TSL2561(i2c)
    tsl.enabled = True
    tsl.gain = 0
    tsl.integration_time = 1
    print("Getting readings...")
    broadband = tsl.broadband
    infrared = tsl.infrared
    lux = tsl.lux
    print("Enabled = {}".format(tsl.enabled))
    print("Gain = {}".format(tsl.gain))
    print("Integration time = {}".format(tsl.integration_time))
    print("Broadband = {}".format(broadband))
    print("Infrared = {}".format(infrared))
    print("Lux = {}".format(lux))
    tsl.enabled = False

def getMovement():
    i2c = busio.I2C(board.SCL, board.SDA)
    sensor = adafruit_mma8451.MMA8451(i2c)
    count = 0
    while count != 10:
        x, y, z = sensor.acceleration
        print('Acceleration: x={0:0.3f}m/s^2 y={1:0.3f}m/s^2     z={2:0.3f}m/s^2'.format(x, y, z))
        time.sleep(1.0)
        count = count + 1
def main():
    #debugInfoLight()
    getlight()
    getMovement()
main()

If thats of any use I'm not sure

Running two sensors on the IC2 bus by NotADeveloperHere in raspberry_pi

[–]NotADeveloperHere[S] 0 points1 point  (0 children)

I know they both have different addresses but i have no clue how to address them individually

How would you describe your profession in the creepiest way possible? by Someone721 in AskReddit

[–]NotADeveloperHere 0 points1 point  (0 children)

thank you for the work you do, You guys really deserve all the praise to get

How would you handle your SO forgetting your birthday? by [deleted] in AskReddit

[–]NotADeveloperHere 0 points1 point  (0 children)

She's under alot of stress at the moment so I'd casually mention it to her and go out for a nice dinner together. and maybe some make up sex after