This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FastLED.h> | |
// 灯带尚灯珠的而数量 | |
#define NUM_LEDS 8 | |
// 控制引脚 | |
#define DATA_PIN 3 | |
// 时钟引脚,对于WS2812来说不需要 | |
#define CLOCK_PIN 13 | |
// 定义每个灯珠的颜色 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
名称 | math.js | |
---|---|---|
网址 | https://mathjs.org/ | |
协议 | Apache 2.0 | |
大数 | 支持 | |
分数 | 支持 | |
特殊无理数 | π e | |
运算 | +-*/乘方开方…… | |
Latex | 支持(转成Latex) | |
解析和构造 | 支持 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
名称 | Geogebra | Desmos | JSXGraph | |
---|---|---|---|---|
网址 | https://geogebra.org/ | https://www.desmos.com/ | https://jsxgraph.uni-bayreuth.de/wp/index.html | |
协议 | 商业 | 商业 | MIT & LGPL | |
公式绘图 | 支持 | 支持 | 支持 | |
变量 | 支持 | 支持 | 编程支持 | |
固定点 | 支持 | 支持 | 编程支持 | |
几何绘图 | 支持 | 支持 | 编程支持 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
名称 | MathQuill | MathLive | WIRIS MathType | |
---|---|---|---|---|
网址 | http://mathquill.com/ | https://mathlive.io/ | http://wiris.com/mathtype | |
协议 | MPL 2.0 | MIT | 商业 | |
Latex | 是 | 是 | ? | |
虚拟键盘 | 无 | 有 | 有(工具栏) | |
快捷键 | 无 | 有 | ? | |
iOS | 支持 | 支持(不显示光标) | ? | |
化学公式 | 无(PR) | 无 | 有 | |
手写识别 | 无 | 无 | 有 | |
语音朗读 | 无 | 有 | 无 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
名称 | MathJax | KaTex | |
---|---|---|---|
网址 | https://www.mathjax.org/ | https://katex.org/ | |
协议 | Apache 2.0 | MIT | |
Latex | 是 | 是 | |
MathML | 是 | ? | |
化学公式 | 是 | 是 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FastLED.h> | |
// 7个LED灯,如果你的数量不一样改成自己的LED灯数量 | |
#define NUM_LEDS 7 | |
// led控制端口 | |
const int ledPin = 3; | |
CRGB rainbow[NUM_LEDS] = { CRGB::Red, CRGB::Orange, CRGB::Yellow, CRGB::Green, CRGB::Blue, {0, 0x7f, 0xff}, CRGB::Purple }; | |
CRGB leds[NUM_LEDS]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 如果是共阳的LED,取消下一行的注释 | |
// #define COMMON_ANODE | |
const int redPin = A0; // 红色引脚 | |
const int greenPin = A1; // 绿色引脚 | |
const int bluePin = A2; // 蓝色引脚 | |
void setup() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int redPin = 13; | |
const int yellowPin = 12; | |
const int bluePin = 11; | |
void setup() { | |
pinMode(redPin, OUTPUT); // 设置3个LED的端口为输出 | |
pinMode(yellowPin, OUTPUT); | |
pinMode(bluePin, OUTPUT); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int ledPin = 13; | |
void setup() { | |
pinMode(ledPin, OUTPUT); // 设置13端口为输出 | |
} | |
void loop() { | |
digitalWrite(ledPin, HIGH); // 设13端口为高位,让灯亮起来 | |
delay(1000); // 等待1s | |
digitalWrite(ledPin, LOW); // 设为低位,让灯熄灭 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('bar'); |
NewerOlder