Search found 377 matches

by SpotlightKid
Thu Oct 11, 2018 9:22 pm
Forum: Hardware Projects
Topic: New 2.4GHz radio ARM cortex M3 chip
Replies: 8
Views: 729

Re: New 2.4GHz radio ARM cortex M3 chip

The ARM specification just covers the CPU. The chip manufacturer still implements all the periphery (UART, SPI, I2C, etc.) and is free to do this however he chooses. For example, the SPI implementation on a ST chip is completely different than on a Winner chip. Heck, even between an STM32F4 and an S...
by SpotlightKid
Thu Oct 11, 2018 4:33 am
Forum: ESP32 boards
Topic: Differences between Micropython ports for ESP32 and ESP8266
Replies: 23
Views: 8021

Re: The pyb module

The port-specific module may also be a good place to initially implement a feature with a goal to moving it out to a general module in the future as it matures. An example would be esp32.TouchPad - it's port-specific at the moment but could feasibly become a general module. Or the pyb.I2C slave mod...
by SpotlightKid
Wed Oct 10, 2018 10:30 pm
Forum: Hardware Projects
Topic: New 2.4GHz radio ARM cortex M3 chip
Replies: 8
Views: 729

Re: New 2.4GHz radio ARM cortex M3 chip

It depends on whether they provide a good reference documentation or even an SDK. So far I haven't found anything of the sorts (but I haven't looked very far).
by SpotlightKid
Wed Oct 10, 2018 5:10 pm
Forum: The MicroPython pyboard
Topic: ExtInt and i2c Memory Error
Replies: 8
Views: 186

Re: ExtInt and i2c Memory Error

So is the i2c.recv() allocating memory internally You are allocating a bytearray object, when you are assigning the return value of I2C.recv() . Instead of passing an integer for the number of bytes to read, you should pass a pre-allocated buffer (bytearray or memory view) of the length you wish to...
by SpotlightKid
Wed Oct 10, 2018 5:04 pm
Forum: ESP32 boards
Topic: Pin input pull-mode of ESP32 WROVER module
Replies: 1
Views: 107

Re: Pin input pull-mode of ESP32 WROVER module

You should refer to the full reference documentation, not only to the tutorial:

https://docs.micropython.org/en/latest/ ... e.Pin.html
by SpotlightKid
Wed Oct 10, 2018 3:53 pm
Forum: Hardware Projects
Topic: New 2.4GHz radio ARM cortex M3 chip
Replies: 8
Views: 729

Re: New 2.4GHz radio ARM cortex M3 chip

This looks rather interesting. If the SPI interface (which apparently is mapped to the board's pins) has good slave mode support, this could also be used as cheap WiFi add-on for the pyboard or other MicroPython boards without a NIC. You could probably even cook up a driver in pure MicroPython using...
by SpotlightKid
Mon Oct 08, 2018 5:16 am
Forum: ESP8266 boards
Topic: Tweepy/TwitterAPI
Replies: 8
Views: 275

Re: Tweepy/TwitterAPI

You just have to look at the setup.py of one of these mentioned libs and notice their dependencies to realize that they won't work under MicroPython. As already said above, very few libs for CPython will work on MicroPython.
by SpotlightKid
Tue Oct 02, 2018 2:35 pm
Forum: The MicroPython pyboard
Topic: Pyboard as i2c slave won't work
Replies: 13
Views: 530

Re: Pyboard as i2c slave won't work

Yes, the client needs to do a recv() regularly, otherwise it can't respond to a scan() . The scan is performed by the master by sending each possible slave address to the bus and the client needs to respond with an ACK (i.e. pulling SDA low) when it recognizes his address. Note that the client recv(...
by SpotlightKid
Sat Sep 29, 2018 11:59 am
Forum: Programs, Libraries and Tools
Topic: rshell and Geany
Replies: 2
Views: 167

Re: rshell and Geany

Code: Select all

#!/bin/bash
# ~/bin/geany-new

exec geany -i "$@"

Code: Select all

rshell --editor geany-new --buffer-size=30 -p /dev/ttyUSB0
:)
by SpotlightKid
Fri Sep 28, 2018 5:04 pm
Forum: ESP8266 boards
Topic: Usocket port in ESP8266
Replies: 4
Views: 185

Re: Usocket port in ESP8266

As long as you're on a local network, UDP usually works fine. The problem is, that the recipient can't know whether it missed any packets. So if you're sending files, you should at least send some sort of checksum along with it, so the recipient can verify the transmission.