Skip to content

Commit bec9e97

Browse files
tests/renesas-ra: Fix code format fail.
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
1 parent 2e23161 commit bec9e97

File tree

5 files changed

+8
-20
lines changed

5 files changed

+8
-20
lines changed

tests/renesas-ra/freq.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@
5757
print("freq: OK")
5858
else:
5959
print("freq: NG")
60-

tests/renesas-ra/i2c.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@
1515
from machine import I2C
1616

1717
i2c = I2C(i2c_id)
18-

tests/renesas-ra/pin.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,17 @@
1717
print("exp: " + try_s)
1818
print("out: " + str(p))
1919

20-
#print(p.name())
21-
#print(p.pin())
22-
#print(p.port())
23-
2420
p = Pin("SW1", Pin.IN, Pin.PULL_UP)
2521
if p.mode() != 1:
2622
print("mode: NG")
2723
p = Pin("SW1", Pin.IN, pull=Pin.PULL_UP)
2824
if p.pull() != 14:
2925
print("pull: NG")
3026
p = Pin("SW1", mode=Pin.IN, pull=Pin.PULL_UP)
31-
#print(p)
32-
#print(p.value())
3327

3428
p.init(p.IN, p.PULL_UP)
3529
p.init(p.IN, pull=p.PULL_UP)
3630
p.init(mode=p.IN, pull=p.PULL_UP)
37-
#print(p)
3831
print(p.value())
3932

4033
p.init(p.OUT)
@@ -56,4 +49,3 @@
5649
p.on()
5750
print(p.value())
5851
p.off()
59-

tests/renesas-ra/spi.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
from machine import SPI
33

44
machine = os.uname().machine
5-
if "RA6M1_EK" in machine or "RA4M1_CLICKER" in machine or "RA4M1_EK" in machine or "RA4W1_EK" in machine or "RA6M1_EK" in machine:
5+
if (
6+
"RA6M1_EK" in machine
7+
or "RA4M1_CLICKER" in machine
8+
or "RA4M1_EK" in machine
9+
or "RA4W1_EK" in machine
10+
or "RA6M1_EK" in machine
11+
):
612
spis = (-1, 0)
713
else:
814
spis = (-1, 0, 1)
@@ -11,7 +17,6 @@
1117
for bus in spis:
1218
try:
1319
spi = SPI(bus)
14-
#print("SPI", bus)
1520
except ValueError:
1621
print("ValueError", bus)
1722

@@ -31,10 +36,5 @@
3136
print(spi)
3237
spi.init(bits=8)
3338
print(spi)
34-
#spi.init(firstbit=0) # SPI.MSB
35-
#spi.init(sck='P100')
36-
#spi.init(mosi='P101')
37-
#spi.init(miso='P102')
3839

3940
spi.deinit()
40-

tests/renesas-ra/uart1.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@
3737
for ch in uart_ids:
3838
try:
3939
uart = UART(ch)
40-
#print(ch)
4140
except ValueError:
4241
print("ValueError", bus)
4342

44-
rxbuf_size=259
43+
rxbuf_size = 259
4544

4645
ch = UART(try_id, rxbuf=rxbuf_size)
4746
if str(ch) == try_s:
@@ -50,4 +49,3 @@
5049
print("NG")
5150
print("exp: " + try_s)
5251
print("out: " + str(ch))
53-

0 commit comments

Comments
 (0)