人工智能

本文以arduino为起点,介绍了人工智能的初步概念。首先解释了arduino开发板的用途,然后详细说明了arduino IDE的下载和编程语言。接着,讲解了编程基础,包括setup和loop函数、注释、变量类型以及运算符。最后,通过闪烁LED的例子,展示了如何运用这些知识进行实践。
摘要由CSDN通过智能技术生成

//本文以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

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值