Anthony Heath
Member
Well the 7.0.0-rc.2 version seems to have solved this problem for me.
Thanks very much for helping!
Thanks very much for helping!
It seems to be working quite well now. I have 3 I2C devices and an SPI display on it. Turns out a megabyte of ram and 600MHz makes a big difference in how things run. Runs very smoothly. Like buttah. I appreciate the help.CircuitPython 7.0.0-rc.3 was posted already too. Looks like it had just one fix for RP2040 over rc2. Following this because I am about to try CircuitPython for a little project using I2C myself.
import board
import pwmio
pwmio.PWMOut(board.D1, frequency=1000, duty_cycle=60000)
I'm experiencing a problem with PWM output on my Teensy 4.1 using Circuitpython. Does anyone have an idea what could be wrong?
It is better to bring up CircuitPython issues in Adafruit spaces. We don't monitor this regularly. Thanks. Please open bug issues like these in https://github.com/adafruit/circuitpython. This particular issue might be covered already in https://github.com/adafruit/circuitpython/issues/4841.
...
but after I did got the code in a working state
the teensy crashed
and entered (in simple words) 'a non usable state'
and the only option was to use the '15sec recovery'
It's now running the blink program of what I can see
but when I press the program button it just flashes the 'program'-led
and no response in teensy loader.
What can I try to do?
Connection lost (EOF)
either windows is crap or there is issues with CircuitPython
both in combination is not working
...
A lot of people love Python. Personally, I get tripped up by the white space requirements, but I can understand why it's so appealing for so many people who didn't start with C or C++.
I was under the impression Adafruit was publishing by Circuit Python and Arduino (C++) libraries for all their hardware. Are some of their products now Python only? Or is someone other than Adafruit publishing substantial libraries for Circuit Python?
{ MP_OBJ_NEW_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO_AD_B0_03) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO_AD_B0_03) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_RX1), MP_ROM_PTR(&pin_GPIO_AD_B0_03) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_GPIO_AD_B0_02) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO_AD_B0_02) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_TX1), MP_ROM_PTR(&pin_GPIO_AD_B0_02) },
// UART config: 8 UARTs at the pins for Teensy 4.1
#define MICROPY_HW_UART_NUM (sizeof(uart_index_table) / sizeof(uart_index_table)[0])
#define MICROPY_HW_UART_INDEX { 0, 6, 4, 2, 3, 8, 1, 7, 5 }
#define IOMUX_TABLE_UART \
{ IOMUXC_GPIO_AD_B0_12_LPUART1_TX }, { IOMUXC_GPIO_AD_B0_13_LPUART1_RX }, \
{ IOMUXC_GPIO_AD_B1_02_LPUART2_TX }, { IOMUXC_GPIO_AD_B1_03_LPUART2_RX }, \
{ IOMUXC_GPIO_AD_B1_06_LPUART3_TX }, { IOMUXC_GPIO_AD_B1_07_LPUART3_RX }, \
{ IOMUXC_GPIO_B1_00_LPUART4_TX }, { IOMUXC_GPIO_B1_01_LPUART4_RX }, \
{ IOMUXC_GPIO_B1_12_LPUART5_TX }, { IOMUXC_GPIO_B1_13_LPUART5_RX }, \
{ IOMUXC_GPIO_AD_B0_02_LPUART6_TX }, { IOMUXC_GPIO_AD_B0_03_LPUART6_RX }, \
{ IOMUXC_GPIO_EMC_31_LPUART7_TX }, { IOMUXC_GPIO_EMC_32_LPUART7_RX }, \
{ IOMUXC_GPIO_AD_B1_10_LPUART8_TX }, { IOMUXC_GPIO_AD_B1_11_LPUART8_RX },
....\Micropython>ampy --port /COM33 ls
/.Trashes
/.fseventsd
/.metadata_never_index
/System Volume Information
/boot_out.txt
/code.py
/lib
D:\Users\Merli\Documents\Micropython>ampy --port /COM33 put bno055.py
Traceback (most recent call last):
File "d:\python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "d:\python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "D:\PYTHON27\SCRIPTS\ampy.exe\__main__.py", line 7, in <module>
File "d:\python27\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "d:\python27\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\python27\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\python27\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\python27\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "d:\python27\lib\site-packages\ampy\cli.py", line 264, in put
board_files.put(remote, infile.read())
File "d:\python27\lib\site-packages\ampy\files.py", line 214, in put
self._pyboard.exec_("f = open('{0}', 'wb')".format(filename))
File "d:\python27\lib\site-packages\ampy\pyboard.py", line 279, in exec_
raise PyboardError('exception', ret, ret_err)
ampy.pyboard.PyboardError: ('exception', '', 'Traceback (most recent call last):\r\n File "<stdin>", line 1, in <module>\r\nOSError: [Errno 30] Read-only filesystem\r\n')
Which gives me the feeling like they maybe support the different uarts...
RX pin: board.D15 TX pin: board.D14
RX pin: board.D25 TX pin: board.D24
RX pin: board.D16 TX pin: board.D17
RX pin: board.D21 TX pin: board.D20
RX pin: board.DAT3 TX pin: board.D20
RX pin: board.D0 TX pin: board.D1
RX pin: board.D52 TX pin: board.D1
RX pin: board.D28 TX pin: board.D29
RX pin: board.D34 TX pin: board.D35
RX pin: board.D48 TX pin: board.D35
RX pin: board.D21 TX pin: board.DAT2
RX pin: board.DAT3 TX pin: board.DAT2
RX pin: board.D0 TX pin: board.D53
RX pin: board.D52 TX pin: board.D53
RX pin: board.D7 TX pin: board.D8