Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. python
    Log in to post

    • S

      "Other Python implementations."
      LoPy • lopy python modules • • stefan85e  

      2
      0
      Votes
      2
      Posts
      567
      Views

      jmarcelino

      @stefan85e MicroPython - as used on the Pycom boards - would count as a different implementation from CPython
    • M

      Pymakr & Python Extension : import pycom module failure
      Discussion • lopy pymakr expansion board python modules • • meven  

      7
      1
      Votes
      7
      Posts
      2503
      Views

      B

      @meven What you advised: "python -m pip install pycom" is working for me also, thank you However next, I got this error: "[pylint] E1101:Module 'pycom' has no 'heartbeat' member" but I could ignore it by: # pylint: disable=maybe-no-member pycom.heartbeat(False) pycom.rgbled(0xffff00)
    • J

      Pymakr with Python Extension
      Pymakr • pymakr python visual studio c linter • • jhollan3  

      2
      0
      Votes
      2
      Posts
      859
      Views

      jmarcelino

      Hi @jhollan3 Pylint and the Python extension aren't really meant for MicroPython or the Pycom boards so it'll throw a lot of errors. There's no linter or extension I know of that would work correctly.
    • S

      2 of my LoPy Stop Working trying on the expansion board 2 and pysense
      Expansion Board • lopy python upload expansion • • stefan85e  

      6
      0
      Votes
      6
      Posts
      1301
      Views

      catalin

      hi @stefan85e, Short between G28 and 3V3 it's for safe-boot (booting without executing micropython scrips or loading previous OTA firmware). This is not required. Let's simplify and isolate problems. upload scripts with Atom Here make a simple print("hello") , no UART usage, yet; it should work usage of UART class. Here if you just want to output messages, print() method should be enough. UART 0 is already indirected to P0/P1, thru print(). The second UART (#1), it's for communicating with another device connected to the Expansion Board (not with the USB/FTDI chip).
    • S

      What should we have in here data = s.recv(???)
      LoPy • lopy pytrack python data data lopy • • stefan85e  

      1
      0
      Votes
      1
      Posts
      559
      Views

      No one has replied

    • S

      Cant upload code to my lopy.... NOTHING HAPPENS :s
      LoPy • lopy pytrack python • • stefan85e  

      3
      0
      Votes
      3
      Posts
      734
      Views

      S

      @robert-hh I know :) it was a pic I took between :) I reinstall it and install latest plugin and atom.version still nothing
    • C

      How can I send something over BLE?
      LoPy • lopy ble python • • CodeManiac64  

      2
      0
      Votes
      2
      Posts
      619
      Views

      C

      Not sure if this could be a possible solution to writing to characteristics, can anyone help me please? https://devzone.nordicsemi.com/f/nordic-q-a/8162/ble-driver-python-concurrent-notifications
    • K

      Measuring power out from solar panel
      Expansion Board • python power • • kbman99  

      5
      0
      Votes
      5
      Posts
      1046
      Views

      robert-hh

      @kbman99 This INA169 device is also interesting, because you can set the sensitivity yourself with the appropriate shunt resistor. But the INA219 device @timh mentions is even more interesting, since it takes both voltage and current, and avoids the noisy ADC of the ESP32.
    • S

      Handshaking with lopy?
      LoPy • lopy lora python • • stefan85e  

      11
      0
      Votes
      11
      Posts
      1572
      Views

      S

      @robert-hh I want to remove the time.sleep and just focus on checking if the packed is sent before sending more so I can max out the send and recv part...
    • S

      Failed 50% of the time to send data!? LORA
      LoPy • lopy lora python • • stefan85e  

      1
      0
      Votes
      1
      Posts
      548
      Views

      No one has replied

    • B

      Best way to not block uploads from Atom
      Discussion • pycom python upload failure • • blindman2k  

      6
      0
      Votes
      6
      Posts
      1154
      Views

      robert-hh

      @xykon Thanks. Even if I'm a little bit self-confident, please give it a second thought and a second test.
    • A

      Two LoRa Socket
      LoPy • lora pymakr python socket thread • • AHellLycan  

      7
      0
      Votes
      7
      Posts
      1381
      Views

      T

      @ahelllycan I think we would need to see code, or general overview of your process. At the moment we are guessing. But @jcaron is right. You should have a call back on message receive and you choose when to send messages based on other criteria. The rest of the time you will be sleeping or waiting.
    • B

      General LoPy + Pytrack Sleep Functions
      Comments & Feedback • lopy pytrack firmware update python sleep • • Burgeh  

      2
      0
      Votes
      2
      Posts
      1366
      Views

      seb

      Hi, Yes, the way the Pytrack/Pysense/Deepsleep shield sleep works is that they disconnect the power from the module, sensors etc entirely. In the case of the Pysense and Pytrack the USB is also de-initialised meaning you will lose the serial connection, this can make talking to the device difficult if it does not wake up for long The Pytrack/Pysense/Deepsleep shield sleep is a a "deep" sleep rather than a regular sleep. Once you use this, when the module wakes up it will be like it was rebooted. Pycom board do not currently support machine.sleep although this is being investigated. The way this differs from the machine.deepsleep is that this uses external hardware and powers off everything on the board, not just the ESP32 processor. You can still use machine.deepsleep if you desire but note that on the WiPy2, LoPy and SiPy, due to an issue with the way the voltage regulator is connected the deepsleep current draw will be quite high (15mA) If you connect P12 to 3.3v with a jumper cable and wait for the device to wake from sleep you will see the on-board LED blink orange. Once this happens you can disconnect the cable. The device will now "safe boot". This prevents the device from running boot.py and main.py and therefore the code putting the device to sleep. The best way to stay informed of firmware updates is to use the forums subscribe feature for the announcements forum. We will always post in there when a new firmware is released
    • B

      General LoPy + Pytrack Sleep Questions
      LoPy • lopy pytrack deepsleep python sleep • • Burgeh  

      1
      0
      Votes
      1
      Posts
      749
      Views

      No one has replied

    • S

      Pymakr 1.2.8 Cand upload code / Safeboot????
      Pymakr • pycom python code pycom upgrade • • stefan85e  

      4
      1
      Votes
      4
      Posts
      1180
      Views

      seb

      @stefan85e Have you tried disabling the safe-boot feature, does this work?
    • S

      Installing “pymakr@1.2.8” failed.Hide output…
      Pymakr • lopy pymakr pycom python pycom upgrade • • stefan85e  

      2
      0
      Votes
      2
      Posts
      891
      Views

      seb

      Could you try deleting C:\Users\Stefan\.atom\packages\pymakr\ and re-install the pymakr plugin
    • J

      To run a C++ program in Micropython
      MicroPython • micropython python c++ • • jhoguaman  

      2
      0
      Votes
      2
      Posts
      998
      Views

      robert-hh

      @jhoguaman You can not. There is no OS on pycom modules. Micropython is the OS. If you build your own firmware, you can write C modules, wich you then can call from Python.
    • K

      Decode Python struct on TTN using Javascript
      MicroPython • lopy python data packet decode • • kbman99  

      2
      0
      Votes
      2
      Posts
      1050
      Views

      K

      Found my answer after hours of looking around. Found this beautiful post on TTN regarding decoding the values of different types and what have you found here by Arjanvanb on TTN The main answer was posted on Stackoverflow by Ilya Bursov.
    • S

      Read and write value of the characteristic
      LoPy • lopy pysense python lopy ble characteristic • • stefan85e  

      1
      0
      Votes
      1
      Posts
      931
      Views

      No one has replied

    • 1
    • 2
    • 3
    • 2 / 3