1951 views|3 replies

23

Posts

0

Resources
The OP
 

[RISC-V MCU CH32V103 Review] Driving OLED [Copy link]

 

I originally wanted to use the hardware IIC driver, but the program compiled correctly and my logic was correct. The problem was that I didn't know where the problem was.

So let's just install the IIC software safely and securely first.

This time I used a 0.96-inch OLED with an IIC interface. I just transplanted the code first to facilitate later use. I will draw an expansion board later.

The wiring is as follows:

// ----------------------------------------------------------------
// GND power ground
// VCC connects to 5V or 3.3v power supply
// SCL connects to PB5 (SCL)
// SDA connects to PB6 (SDA)
// ----------------------------------------------------------------

Just put the code and OLED datasheet in the attachment

中景园电子0.96寸OLED使用文档新手必看V2.0.pdf (1.61 MB, downloads: 4)



GPIO_oled.rar (391.41 KB, downloads: 11)

This post is from Domestic Chip Exchange

Latest reply

OK. If you still have questions, you can call us and we can help you contact some engineers or Qinheng people to ask   Details Published on 2021-2-7 08:35
 
 

1w

Posts

204

Resources
2
 

Is the result not as expected? I don't know what kind of error the OP is talking about.

This post is from Domestic Chip Exchange
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Comments

I checked the timing on an oscilloscope, but it doesn't work. I'll check it again, I think it's the response part. Software IIC is better.  Details Published on 2021-2-6 22:28
Personal signature

玩板看这里:

http://en.eeworld.com/bbs/elecplay.html

EEWorld测评频道众多好板等你来玩,还可以来频道许愿树许愿说说你想要玩的板子,我们都在努力为大家实现!

 
 
 

23

Posts

0

Resources
3
 
okhxyyo posted on 2021-2-6 21:24 Is the result not as expected? I don't know what kind of error the OP is talking about

I checked the timing on an oscilloscope, but it doesn't work. I'll check it again, I think it's the response part. Software IIC is better.

This post is from Domestic Chip Exchange

Comments

OK. If you still have questions, you can call us and we can help you contact some engineers or Qinheng people to ask  Details Published on 2021-2-7 08:35
 
 
 

1w

Posts

204

Resources
4
 
hzz592788 posted on 2021-2-6 22:28 When I look at it on the oscilloscope, the timing sequence looks fine, but it just doesn't work. I'll take a look at it again, I guess it's the response part. Software IIC is still easier to use

OK. If you still have questions, you can call us and we can help you contact some engineers or Qinheng people to ask

This post is from Domestic Chip Exchange
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
Personal signature

玩板看这里:

http://en.eeworld.com/bbs/elecplay.html

EEWorld测评频道众多好板等你来玩,还可以来频道许愿树许愿说说你想要玩的板子,我们都在努力为大家实现!

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list