Cov txheej txheem:

Puas muaj qhov debugger rau Arduino?
Puas muaj qhov debugger rau Arduino?

Video: Puas muaj qhov debugger rau Arduino?

Video: Puas muaj qhov debugger rau Arduino?
Video: Ib Sim neej Tsis Muaj Qhov Zoo. 2/17/22 2024, Kaum ib hlis
Anonim

Feem ntau cov kev pab cuam yuav siv a debugger pab tus programmer nrhiav cov kab thiab daws lawv. Tseem Arduino tsis muaj li ntawd debugging qhov system. Arduino Debugging yog ib ntawm tus ntau cov haujlwm nyuaj ntawm kev tswj ib qho Arduino qhov project. Tsis zoo li feem ntau lwm yam IDEs, nyob ntawd tsis muaj official Arduino debugging feature onboard lub Arduino IDE.

Tsis tas li ntawd, ua li cas koj debug tus Arduino sketch?

Debug koj Arduino code nrog Visual Studio Code

  1. Piv txwv tias cov neeg tsim khoom tau siv Arduino Extension rau Visual Studio Code rau tsim Arduino code.
  2. qhib ib *.
  3. ua raws li qhov screen no ntxiv Arduino debugging configuration (F5)
  4. Hloov rov qab mus rau qhov *.
  5. Nyem qhov "start" khawm lossis nias F5 los pib qhov kev sib tham debugging.

Kuj Paub, Kuv yuav ua li cas debug Arduino hauv Atmel Studio? Rau debug qhov kev pab cuam koj yuav tsum configure lub Atmel -ICE ua haujlwm hauv hom debugWIRE. Xaiv qhov Project rub cov ntawv qhia zaub mov thiab hauv qab xaiv "Properties Properties …" (lossis nyem alt-F7). Xaiv tus debugger / programmer cuab tam ( Atmel -ICE) thiab xaiv debugWIRE los ntawm kev xaiv Interface.

Yog li ntawd, koj tuaj yeem hla dhau Arduino code?

Tsis yog tsis muaj txoj hauv kev kauj ruam dhau tus code ntawm koj Arduino hauv Arduino ib puag ncig. Koj ua tau siv cov analog pins li digital I/O ntawm tus Arduino ho, uas muab koj tag nrho ntawm 20 digital I / O tus pins, 18 yog koj xav siv serial. Yog li koj yuav tsum txawm xav tau ib tug expander board rau qhov project no.

Arduino code nyob rau hauv dab tsi?

Arduino code yog sau rau hauv C ++ nrog ntxiv ntawm cov kev tshwj xeeb thiab kev ua haujlwm, uas peb yuav hais txog tom qab. C++ yog ib tug human-readable programming language. Thaum koj tsim ib 'sketch' (lub npe muab rau Arduino code files), nws yog txheej txheem thiab muab tso ua ke rau tshuab lus.

Pom zoo: