//本文以arduino为工具,从入门介绍人工智能
- 什么是arduino
- arduino开发环境介绍
- 编程起步
- LED闪烁
什么是arduino?
arduino是一款开发板,专门为创客打造,用于实现机器的智能化。
arduino开发环境介绍
arduino IDE 可以去官网www.arduino.cc下载。arduino是用java开发,编程语言是C++。
编程起步
穿件新文件时会看到两个方法:
void setup ( ) { } - All of the code within the curly braces will be run ONCE when the program first runs.
void loop ( ) { } - This function is run AFTER setup has finished. All of the code within the curly braces will be run again, and again, until the power is removed.
语法:
// - Single line comment
/* */ - Multiline comment
{ } – used to define a block of code that star