<jupyter_start><jupyter_text>Testing Motors<jupyter_code>#Signal and EnA by PWM, setting for each motor
# m1_sig, m1_in1, m1_in2 = 4, 0, 1
# m2_sig, m2_in1, m2_in2 = 5, 2, 3
# stby = 6
#DIY Board
# m3_sig, m3_in1, m3_in2 = 0, 2, 1
# m1_sig, m1_in1, m1_in2 = 5, 3, 4
# m2_sig, m2_in1, m2_in2 = 6, 8, 7
# m4_sig, m4_in1, m4_in2 = 11, 9, 10
#Bcar Board - V3
# m1_sig, m1_in1, m1_in2 = 0, 2, 1
# m3_sig, m3_in1, m3_in2 = 5, 3, 4
# m4_sig, m4_in1, m4_in2 = 6, 8, 7
# m2_sig, m2_in1, m2_in2 = 11, 9, 10
#Bcar Board - - V4
m1_sig, m1_in1, m1_in2 = 0, 2, 1
m2_sig, m2_in1, m2_in2 = 11, 9, 10
m3_sig, m3_in1, m3_in2 = 5, 3, 4
m4_sig, m4_in1, m4_in2 = 6, 8, 7
HIGH = 4095
LOW = 0
pwm.set_pwm(m1_in1, 0, HIGH)
pwm.set_pwm(m1_in2, 0, LOW)
pwm.set_pwm(m1_sig, 0, HIGH)
pwm.set_pwm(m1_sig, 0, LOW)
pwm.set_pwm(m1_in1, 0, LOW)
pwm.set_pwm(m1_in2, 0, LOW)
pwm.set_pwm(m2_in1, 0, HIGH)
pwm.set_pwm(m2_in2, 0, LOW)
pwm.set_pwm(m2_sig, 0, HIGH)
pwm.set_pwm(m2_sig, 0, LOW)
pwm.set_pwm(m2_in1, 0, LOW)
pwm.set_pwm(m2_in2, 0, LOW)
pwm.set_pwm(m3_in1, 0, HIGH)
pwm.set_pwm(m3_in2, 0, LOW)
pwm.set_pwm(m3_sig, 0, HIGH)
pwm.set_pwm(m3_sig, 0, LOW)
pwm.set_pwm(m3_in1, 0, LOW)
pwm.set_pwm(m3_in2, 0, LOW)
pwm.set_pwm(m4_in1, 0, HIGH)
pwm.set_pwm(m4_in2, 0, LOW)
pwm.set_pwm(m4_sig, 0, HIGH)
pwm.set_pwm(m4_sig, 0, LOW)
pwm.set_pwm(m4_in1, 0, LOW)
pwm.set_pwm(m4_in2, 0, LOW)<jupyter_output><empty_output><jupyter_text>Testing Servo<jupyter_code>def set_servo_angle(channel,angle):
    date=4096*((angle*11)+500)/20000 + 0.5
    pwm.set_pwm(channel,0,int(date))
set_servo_angle(channel=15,angle=0)
# pwm.set_pwm(12, 0, HIGH)
pwm.set_pwm(12, 0, LOW)
# pwm.set_pwm(13, 0, HIGH)
pwm.set_pwm(13, 0, LOW)
# pwm.set_pwm(14, 0, HIGH)
pwm.set_pwm(14, 0, LOW)<jupyter_output><empty_output><jupyter_text>Testing Top Light<jupyter_code>light_vcc, light_gnd = 15, 14
pwm.set_pwm(light_vcc, 0, HIGH)
pwm.set_pwm(light_gnd, 0, LOW)
pwm.set_pwm(light_vcc, 0, LOW)
pwm.set_pwm(light_gnd, 0, HIGH)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1617943548387097, 'fraction_numerical': 0.11895161290322581, 'mean_word_length': 5.508196721311475, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '22741', 'license': 'MIT', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1202, 'n_words': 221, 'path': 'notebook/board_testing.ipynb', 'repo_name': 'youyoubilly/BillioCar', 'size': '1984'}