• DS18b20 temperature values format

    SiPy ds18b20 format sensor
    3
    0 Votes
    3 Posts
    622 Views
    robert-hhR
    @brossingo I'm using this lib for Pycom devices: https://github.com/pycom/pycom-libraries/tree/master/examples/DS18X20 It works well. I tested it only with a single device on the bus, but there is also support for multiple devices.
  • bytearray, type and format confusion

    LoPy bytearray format
    2
    0 Votes
    2 Posts
    714 Views
    J
    @soren Add ``` alone on the lines before and after your code, or prefix them all with 4 spaces to have them formatted as code. 40000 % 256 (or 40000 & 255, i.e. keeping the 8 least significant bits) = 64, which is the code point for @.