【NUCLEO-G474RE 评测】三、双通道一致性与故障诊断
【NUCLEO-G474RE 评测】二、双通道 ADC 与 DAC 回接实测
学习有奖 | 《STM32CubeMX2 实战课程》打卡学习,精通工程配置与代码移植
文末有福利 | ST PowerGaN:引领电力能源领域高效化、小型化技术革新(下)
【免费评测】STM32H5 新品 ——NUCLEO H5E5ZJ 开发板测评活动
双节狂欢 | 中秋遇国庆,实战&互动&福利享不停!
#双节活动#STM32Cube for VS Code的开发经验
学习有奖 | 打卡《STM32 MCUBoot 安全启动与固件升级》课程,筑牢固件安全能力
把安全做进产品全生命周期|CRA 安全月三场系列直播重磅来袭
【粉丝福利】2026 ST中文论坛年中粉丝福利活动
微信公众号
手机版
" \$ q3 C# r0 \; j' J4 N. q9 o
public static void main(String[] args) {
while(true) {
String Mylover = "";! o4 t& z: z. |" t4 @$ I& s# Y
for (int i = 0; i < 3; i++) {' ?3 u$ @0 }3 o" [/ ^# t- `/ ?7 x
char a = (char)(Math.random() * 26 + 65);" T% p# ~9 k, C
Mylover = Mylover + a;
}' U3 J) r/ ?" O- `$ t5 k2 V; A, X
if (Mylover.equals("YOU")) {& @' D/ P9 S) Z& `/ u$ Z, Y6 v
System.out.println("My dream comes true!");
break;
}
}
}
}
" m7 `: R. f) s4 Q, Z# ]# L
if(you love me ?)
{% p. l5 Z) r) m/ G7 ?/ _
printf("hellow word");
}: u3 U ~8 N# u$ I4 x
else if (you love others ?)
{
go to lineone ;! Y8 w0 c4 t$ X7 J' u
}
5 c% D9 U# \( l1 v
if(you love me ?)
{( s: v, j) @0 e5 y1 ]' S; q! [
printf("hellow word");* C; E+ K8 w+ Z3 f. A8 z
}
else if (you love others ?)& a, O n3 j- ^
{
go to lineone ;
}
这是我最喜欢的传感器赋能工业物联网$ X! i; L8 ~/ o
; Q8 L, d6 V* F2 c, r C
以前st发布那个mems还专门开过一个视频宣讲会,略有了解。st的mems比市面上的同类产品具有更高的精度和更低的功耗,虽然我对这些不敏感,可这是一种进步,更是一种技术优势。而且还有配套的pc软件协助开发,视频中的应用也非常多,我印象最深的是那个手表,借助mems的手势控制,可以把按钮去掉了都。对于新手更关注的还是入门性,mems的开发板十分丰富,视频中介绍的就有8个,你想怎么测就怎么测。十分强大内容6 o* a4 L$ m( w$ g6 J
学习了,这个做的很不错,蛮全面的& H2 i" d" B7 {
#include<windows.h>
void color(int m)
{
HANDLE consolehend;
consolehend = GetStdHandle(STD_OUTPUT_HANDLE);" p$ D5 S; ? y, n# h6 H
SetConsoleTextAttribute(consolehend, m);
}
int main()
{+ j& v8 W W! V. ~3 V% u' z- ^
int s=0;
char str[]=" 我喜欢你! ";
double x,y;& o3 g: K' B' j; E. `1 f
for(y=1.3;y>=-1.1;y-=0.11)
{
for(x=-2;x<1.4;x+=0.05) D1 x0 S! g- X: k/ T$ t
{
if((((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y)<0))' X: J% c; ~- ?& v+ |5 g- o
{- w: u4 x7 [* i' v- X/ [4 }( Z N
s++;
if(s>=378 && s<=392); @( D8 M8 L7 d
{( o. @. |5 @( b- i- A% k* j2 e: q4 L
color(0x0b);
printf("%c", str[s-378]);
Sleep(50);6 L: j2 S# i$ r$ R3 K1 v
}+ q9 j. O8 i0 Q: X5 j+ Q
else% X+ S; B$ O r8 M, C' q
{7 {7 ~. x% V8 M/ Y
if(s%4==1){color(0x0a);printf("l");}
if(s%4==2){color(0x0e);printf("o");}
if(s%4==3){color(0x0c);printf("v");}, {+ ]9 a$ X! B7 V2 h
if(s%4==0){color(0x0d);printf("e");}/ {- l2 b" u0 v6 u
Sleep(1);' v5 L5 p' k+ K; B
}# l' Y: B- }& ?. o8 g% `( K* k# K
}0 ~7 z, }; _- a; e
else
printf(" ");
) `+ ^4 ~$ n) X+ Y) z- b
}
printf("\n");5 @- e! _; n, l7 |
}# n% M3 n' j1 A9 @
printf("按任意键退出!");( x& `! H/ r' R
getchar();
}
! y" @5 Q( I$ b/ J- @' m
9 @+ t- g$ J) }
#include<windows.h>! _6 O4 ?9 ]7 ?" X8 E) _: I; `
void color(int m) , n/ q1 g. X0 N& y# b( r# A; m
{
HANDLE consolehend;
consolehend = GetStdHandle(STD_OUTPUT_HANDLE);: ]- X9 G4 i: L/ C/ s& z0 \! u
SetConsoleTextAttribute(consolehend, m);8 s3 f# @0 @' H& ?
}/ V6 r; U( q; X+ W$ k, t" F8 x6 R
int main()
{' J! N/ W8 c" {4 j/ ?) X7 H( S" L
int s=0;6 a) A. ?: l4 m1 H
char str[]=" 我喜欢你! ";7 V! a& l" C. p
double x,y;
for(y=1.3;y>=-1.1;y-=0.11)! @/ O. W' H7 f) u$ U! G4 d
{
for(x=-2;x<1.4;x+=0.05)
{8 |0 T1 Z& H% _( N7 @4 ~8 r5 e
if((((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y)<0))
{( u3 G% ~; I$ Z3 X
s++;$ n1 k/ \+ L* h) K( H0 k" s
if(s>=378 && s<=392)5 C: @1 \- q. S
{; r0 M! q* g0 N7 m D
color(0x0b);
printf("%c", str[s-378]);
Sleep(50);
}% q0 U; N9 N9 V- l- L7 v! f8 a
else
{' d2 P' t5 t9 p& d* j" b
if(s%4==1){color(0x0a);printf("l");}8 w& C. e; B6 P. u
if(s%4==2){color(0x0e);printf("o");}
if(s%4==3){color(0x0c);printf("v");}
if(s%4==0){color(0x0d);printf("e");}
Sleep(1);1 Z/ o- n5 J( z/ C
}
}2 k, R7 O3 O9 V- k; S/ T6 W
else
printf(" ");
* b# E5 Z/ p. ^
}" v1 G, x a, Z
printf("\n");
}
printf("按任意键退出!");
getchar();
}
6 s% j1 P& S% z1 q8 B" H2 j; q