SHARE
TWEET

Untitled

a guest Jun 26th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import can
  2.  
  3. while True:
  4.     measurements = get_readings_from_canbus(can)
  5.     time.sleep(0.1)
  6.      
  7. import can
  8. bus = can.interface.Bus(channel='can0', bustype='socketcan_native')
  9. notifier = can.Notifier(bus, [can.Printer()])
  10.      
  11. import can
  12. bus = can.interface.Bus(channel='can0', bustype='socketcan_native')
  13. notifier = bus.recv()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top