Skip to content
Snippets Groups Projects
Commit df9151ad authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent 1016369e
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,14 @@ from rp2 import PIO,StateMachine,asm_pio
import machine,sys,time,math
from machine import Pin,ADC
#
# overlcock for faster PWM
#
machine.freq(250_000_000)
#
# H-bridge settings
#
pwm_freq = 100_000_000
pwm_range = 500 # 100 kHz
pwm_freq = 200_000_000
pwm_range = 500 # 200 kHz, 2 instructions
pwm_pinA0 = 27
pwm_pinA1 = 28
pwm_pinB0 = 7
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment