About 50 results
Open links in new tab
  1. python - How can I display a pi symbol, properly laid out fractions etc ...

    Mar 11, 2024 · The symbol for Pi is just a regular character (π). You can put that directly into any Python string.

  2. 1000 digits of pi in Python - Stack Overflow

    The problem is my code isn't working to output 1000 digits of pi in Python. Here's my code:

  3. Using Python smbus on a Raspberry Pi - confused with syntax

    Jun 26, 2013 · I am trying to use python-smbus on a Raspberry Pi to communicate with an MMA7660 accelerometer chip using I2C. In the code below, I am reading registers 0x00, 0x01, 0x02 and 0x03 …

  4. Write data to register with i2c in python - Stack Overflow

    Mar 27, 2021 · I need to change value in MLX96014 temperature sensors eeprom with raspberry pi and python. I can read its ram and eeprom without problems, but I cant write to it. Also every python …

  5. python - Looking for a way to infinitely generate digits of PI - Stack ...

    Aug 13, 2020 · 1 please correct me if this is a dumb and impossible problem, but is there a way to have a script that continually generates digits of PI? for example, the script could generate a digit of PI, …

  6. Serial communication with Raspberry pi - Stack Overflow

    Jun 12, 2014 · How can we do serial communication using the raspberry pi with a python script to send/receive data to my laptop? If yes can we use the RS232 cable to connect to the TX/RX ports on …

  7. Read/write data over Raspberry Pi Pico USB cable

    Aug 6, 2023 · Use Thonny to put MicroPython code on Raspberry Pi Pico. Save it as 'main.py'. Unplug Raspberry Pi Pico USB. Plug Raspberry Pi Pico USB back in. (don't hold do the boot button). Run …

  8. Leibniz formula for π - Is this any good? (Python)

    I'm doing an exercise that asks for a function that approximates the value of pi using Leibniz' formula. These are the explanations on Wikipedia: Logical thinking comes to me easily, but I wasn't g...

  9. python - Permissions Error when trying to read / write to a file on a ...

    Jan 7, 2019 · 2 Are you running the python code from the Terminal? If so try to do sudo python yourFile.py or if you are using python3 sudo python3 yourFile.py. Consider also changing your …

  10. Serial communication between Raspberry Pi Pico and PC

    Nov 10, 2022 · For PC I'm using PyCharm, for Raspberry Pi Pico Thonny. After flashing Raspberry Pi Pico I'm disconnecting the serial and run the script in PyCharm with different interpreter.