3万行あったプログラムをなんとか20行でまとめました。。
本当は公開したくないですが、世界のテクノロジー底上げの為に、無料で公開したいと思います。。
I managed to summarize the program that had 30,000 lines in 20 lines. .
I don't really want to publish it, but I would like to publish it for free in order to raise the level of technology in the world. .
from m5stack import * import imu from m5ui import * from uiflow import *
imu0 = imu.IMU()
lcd.clear(lcd.BLACK)
def buttonB_wasReleased(): while True: wait(1) if imu0.ypr[1] > 50: gazou = lcd.image(0, 0, "gazou2.jpg") elif 0 < imu0.ypr[1] < 50: gazou = lcd.image(0, 0, "gazoi1.jpg") else: lcd.clear(lcd.BLACK) break wait_ms(2) btnB.wasReleased(buttonB_wasReleased)
Thanks!
懐かしのハワイアンボールペン。。
これを、令和のこの時代に、テクノロジを駆使して復活させようとするのが、今回の一大プロジェクトです。
A nostalgic Hawaiian ballpoint pen. .
The big project this time is to try to revive this by making full use of technology in this era of Reiwa.