GithubHelp home page GithubHelp logo

Issue when running script about pt8005 HOT 3 CLOSED

void4main avatar void4main commented on June 1, 2024
Issue when running script

from pt8005.

Comments (3)

DRussellSTFC avatar DRussellSTFC commented on June 1, 2024 2

Thank you for the reply, yes using python 3.7 on debian. It magically seems to be working now.

from pt8005.

void4main avatar void4main commented on June 1, 2024

Haven't used it for while ... Have to check what my output is.

from pt8005.

void4main avatar void4main commented on June 1, 2024

I guess the problem is somewhere else:

Python 3.6.9 (default, Dec  8 2021, 21:08:43)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> part1 = 3
>>> part2 = b'\x05'
>>> part3 = b'\x08'
>>> type(part3)
<class 'bytes'>
>>> value = (part1*10)+int(part2.hex())+(int(part3.hex())/10)
>>> value
35.8

This looks good. Do you use Python3?

from pt8005.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.