历史上的今天
今天是:2024年10月21日(星期一)
2019年10月21日 | bascom avr单片机仿真oled显示
2019-10-21 来源:51hei
仿真原理图如下
rem Main.bas file generated by New Project wizard
rem
rem Created: 周三 1月 16 2019
rem Processor: ATmega88P
rem Compiler: BASCOM-AVR2.0.7.9演示版
rem Write your code here
'-------------------------------------------------------------------------------
' SSD1306-I2C.BAS
' (c) MCS Electronics 1995-2015
' Sample to demo the 128x64 I2C OLED display
'
'-------------------------------------------------------------------------------
$regfile = "m88pdef.dat"
$hwstack = 32
$swstack = 32
$framesize = 32
$crystal = 8000000
Config Clockdiv = 1 ' make sure the chip runs at 8 MHz
Config Scl = Portc.5 ' used i2c pins
Config Sda = Portc.4
Config Twi = 400000 ' i2c speed
I2cinit
$lib "i2c_twi.lbx" ' we do not use software emulated I2C but the TWI
$lib "glcdSSD1306-I2C.lib" ' override the default lib with this special one
Config Graphlcd = Custom , Cols = 128 , Rows = 64 , Lcdname = "SSD1306"
do
Cls
Setfont Font8x8tt
Showpic 0 , 0 , Plaatje,1
Waitms 3000
Cls
Lcdat 4 , 20 , "Hello~~ welcome!"
Waitms 3000
Showpic 0 , 0 , Plaatje
Waitms 3000
loop
End
$include "font8x8TT.font" ' this is a true type font with variable spacing
Plaatje:
$bgf "ymz.bgf"
史海拾趣
|
麻烦大家了。毕业设计将要做的是视频图像那块,然后在DSP上实现。发现现在大多的论文都是在TI上完成的。 基于一些原因,我想如果在ADI的DSP上去实现,会不会不太主流,请大家帮忙分析一下还有什么弊端。先谢过。… 查看全部问答> |
|
热烈庆祝获得LPC1343开发板,写了个LPCXpresso下载与安装的教程。 1.LPCXpresso下载 lpcxpresso_3.3.4_170.exe下载地址,需要简单注册 http://lpcxpresso.code-red-tech.com/LPCXpresso/ 2. 安装过程 我选择的是默认设置,所以一 ...… 查看全部问答> |
|
按照计划,AMD的四核处理器“巴塞罗那”的发布日期为2007年9月10日。然而,其老对手英特尔却抢先一步,将其新一代四核至强处理器——7300系列新品的发布日期由原定的9月中旬提前至9月6日。针对英特尔的“抢先”举措,8月28日,AMD大中华区计算产品 ...… 查看全部问答> |
|
2812的C语言例程中对寄存器的地址定义只是在CMD中定义了头地址,但是这些如GpioMuxRegsFile等如何和头文件中的GPAMUX_BITS寄存器关联上的… 查看全部问答> |




