Python, MicroPython...
 
Notifications
Clear all

Which (if any) of these Python-related topics do you find interesting? Poll is created on Feb 16, 2021

  
  
  
  
  

Python, MicroPython, CircuitPython

156 Posts
32 Users
65 Likes
6,901 Views
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4537
 

@jasline123 Have you heard of Google?

Screen Shot 2022 09 10 at 16.16.51

 

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
robotBuilder
(@robotbuilder)
Noble Member
Joined: 4 years ago
Posts: 1755
 

@zander 

I think he needs a working example written in circuit python.  I haven't been able to find such an example. 

 


   
ReplyQuote
robotBuilder
(@robotbuilder)
Noble Member
Joined: 4 years ago
Posts: 1755
 

@jasline123 

As an alternative to OpenCV perhaps openMV
https://openmv.io/
If you have CircuitPython 7.3.3
This is the latest stable release of CircuitPython that will work with the OpenMV H7.
https://circuitpython.org/board/openmv_h7/

 


   
ReplyQuote
VE1DX
(@ve1dx)
Estimable Member
Joined: 4 years ago
Posts: 156
 

Has anyone done any amount of Python programming on an Arduino? I have been fooling around with an Arduino Nano on a Mac. I got the ubiquitous 'Blink' to work using pycharm (and the standard Python IDE 3.9.).

- Paul VE1DX

 

# My First python program to run on an Arduino Nano

import pyfirmata
import time

board = pyfirmata.Arduino('/dev/cu.usbserial-141110')

it = pyfirmata.util.Iterator(board)
it.start()
x = board.get_pin('d:13:o')
while True:
    x.write(1)
    time.sleep(1)
    x.write(0)
    time.sleep(1)

   
ReplyQuote
Kids Taxi
(@kids-taxi)
Active Member
Joined: 3 years ago
Posts: 13
 

@ve1dx Nice to see a bit of diversity 🙂

Non Sibi Sed Omnibus


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4537
 

@ve1dx That seems so 1950's, with the port hardcoded you can't use it on another computer like a Mac or *nix or maybe even a PC. Surely there is a better way.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Page 11 / 11