research-plan-programming

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
research-plan-programming [2024/06/26 18:01] – created daniel.chenresearch-plan-programming [2024/06/26 19:38] (current) daniel.chen
Line 1: Line 1:
-====== comprehensive report material programming ======+====== programming ======
  
-[[daniel-comprehensive-reportback]]+[[daniel-chenDaniel Chen]]
  
-====== car part  ====== +==== These are the codes for testing if my robot is working correctly ==== 
-input.onButtonPressed(Button.A, function () { + 
-    wuKong.setMotorSpeed(wuKong.MotorList.M1, -100) + 
-    wuKong.setMotorSpeed(wuKong.MotorList.M2, 100) +[[daniel-code-car-part| car part]] 
-    T = 1 + 
-}) +[[daniel-code-pen-part| pen part]] 
-input.onButtonPressed(Button.AB, function () { + 
-    if (T == 1) { +[[daniel-code-wheel-part| wheel part]]
-        wuKong.setMotorSpeed(wuKong.MotorList.M1, 100) +
-        wuKong.setMotorSpeed(wuKong.MotorList.M2, 100) +
-        T +
-    } else { +
-        wuKong.stopMotor(wuKong.MotorList.M1) +
-        wuKong.stopMotor(wuKong.MotorList.M2) +
-        T 1 +
-    } +
-}) +
-input.onButtonPressed(Button.B, function () { +
-    wuKong.setMotorSpeed(wuKong.MotorList.M1, 100) +
-    wuKong.setMotorSpeed(wuKong.MotorList.M2, -100) +
-    T = 1 +
-}) +
-let T = 0 +
-T = 1 +
-====== pen part ======+
  
-basic.forever(function () { 
-    if (input.buttonIsPressed(Button.A)) { 
-        wuKong.setServoSpeed(wuKong.ServoList.S0, 20) 
-    } else { 
-        wuKong.setServoSpeed(wuKong.ServoList.S0, -100) 
-    } 
-}) 
-====== wheel part ====== 
-https://makecode.microbit.org/75006-20679-19973-89492 
  
-*This is a code written by someone else. This is not the final version, but it shows that omniscience can be use in micro bit. 
  • research-plan-programming.1719450081.txt.gz
  • Last modified: 2024/06/26 18:01
  • by daniel.chen