迪文科技论坛

 找回密码
 立即注册
搜索
查看: 598|回复: 3

[Question]Change button icon

[复制链接]

11

主题

31

回帖

286

积分

中级会员

Rank: 3Rank: 3

积分
286
发表于 2020-7-20 17:05:38 | 显示全部楼层 |阅读模式
Hello,
Is anyone can help me to figure out how to change button icon by clicking on it.
For example I have 5 button icons and I need to change those each time when I'm pressing it.
Any example?

Thanks.
回复

使用道具 举报

0

主题

48

回帖

1411

积分

金牌会员

Rank: 6Rank: 6

积分
1411
发表于 2020-7-20 19:38:33 | 显示全部楼层
Hello!
You can try to use variable mutation and increment adjustment to achieve the effect you need. You can associate the increment adjustment with the variable icon through the same variable address.

Wish you a smooth development!
Variable Icon
回复

使用道具 举报

11

主题

31

回帖

286

积分

中级会员

Rank: 3Rank: 3

积分
286
 楼主| 发表于 2020-7-21 12:08:47 | 显示全部楼层
Thank you.
With your help i did it.
One more question, if you can?
I need to connect this too arduino, so you have arduino code i can use?
or maybe you can give me idea how to do it?
Thank you  
回复

使用道具 举报

0

主题

428

回帖

2362

积分

金牌会员

Rank: 6Rank: 6

积分
2362
发表于 2020-7-21 16:21:17 | 显示全部楼层
Mark20 发表于 2020-7-21 12:08
Thank you.
With your help i did it.
One more question, if you can?

Sorry, we don't have this code.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2024-12-28 00:01 , Processed in 0.060416 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表