CH340 RTS DTR引脚编程驱动OLED

运行结果

硬件连接(在连接线上串接300R电阻)

下面是c#实现代码

using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;


using uint8 = System.Byte;                      /* defined for unsigned 8-bits integer variable 	无符号8位整型变量  */
using int8 = System.SByte;                      /* defined for signed 8-bits integer variable		有符号8位整型变量  */
using uint16 = System.UInt16;                   /* defined for unsigned 16-bits integer variable 	无符号16位整型变量 */
using int16 = System.Int16;                     /* defined for signed 16-bits integer variable 		有符号16位整型变量 */
using uint32 = System.UInt32;                    /* defined for unsigned 32-bits integer variable 	无符号32位整型变量 */
using int32 = System.Int32;                     /* defined for signed 32-bits integer variable 		有符号32位整型变量 */
using fp32 = System.Single;                     /* single precision floating point variable (32bits) 单精度浮点数(32位长度) */
using fp64 = System.Double;                      /* double precision floating point variable (64bits) 双精度浮点数(64位长度) */

using unsigned_char = System.Byte;
using unsigned_int = System.UInt16;
using System.IO.Ports;
using System.Threading;
using System.Diagnostics;

namespace CH340I2C
{



    internal class OLED
    {
        SerialPort sp = new SerialPort();
        public OLED(SerialPort sp)
        {
            this.sp = sp;
            try
            {
                if( sp.IsOpen )
                {
                    sp.Close();
                }
                sp.Open();
                OLED_Init();
                Draw_BMP(0, 0, 128, 8, bilibili_tv);
                sp.Close();
            }
            catch (Exception ex) {  }
            finally {  }
           
        }
        ~OLED() 
        {
            try
            {
                sp.Close();
                
            }
            catch (Exception ex) { }
            finally { }

        }
        //# include "codetab.h"
        //#define SCL1 EscapeCommFunction(hComm, CLRRTS)
        //#define SCL0 EscapeCommFunction(hComm, SETRTS)
        //#define SDA1 EscapeCommFunction(hComm, CLRDTR)
        //#define SDA0 EscapeCommFunction(hComm, SETDTR)
        public void SCL1()
        {
            //操作串口
            //
            
            sp.DtrEnable = false;
        }

        public void SCL0()
        {
            //操作串口
            
            sp.DtrEnable = true;
        }

        public void SDA1()
        {
            //操作串口
            sp.RtsEnable = false;
        }

        public void SDA0()
        {
            //操作串口
            sp.RtsEnable = true;
        }

        //#define Brightness    0xCF
        //#define X_WIDTH     128
        //#define Y_WIDTH     64
        private const byte Brightness = 0xCF;

        private const byte X_WIDTH = 128;
        private const byte Y_WIDTH = 64;

        /**********************************************
        //IIC Start
        **********************************************/

        private  void IIC_Start()
        {
            //Stopwatch sw = Stopwatch.StartNew();
            
            SCL1();
            SDA1();
            SDA0();
            SCL0();
            //sw.Stop();
            //Debug.WriteLine(sw.Elapsed.ToString());
        }

        /**********************************************
        //IIC Stop
        **********************************************/

        private void IIC_Stop()
        {
            SCL0();
            SDA0();
            SCL1();
            SDA1();
        }

        
        /**********************************************
        // 通过I2C总线写一个字节
        **********************************************/
        void Write_IIC_Byte(unsigned_char IIC_Byte)
        {
            unsigned_char i;
            for (i = 0; i < 8; i++)
            {
                if (Convert.ToBoolean( IIC_Byte & 0x80 ))
                    SDA1();
                else
                    SDA0();
                SCL1();
                SCL0();
                IIC_Byte <<= 1;
            }
            SDA1();
            SCL1();
            SCL0();
        }

        /*********************OLED写数据************************************/
        void OLED_WrDat(unsigned_char IIC_Data)
        {
            IIC_Start();
            Write_IIC_Byte(0x78);
            Write_IIC_Byte(0x40);            //write data
            Write_IIC_Byte(IIC_Data);
            IIC_Stop();
        }
        /*********************OLED写命令************************************/
        void OLED_WrCmd(unsigned_char IIC_Command)
        {
            IIC_Start();
            Write_IIC_Byte(0x78);            //Slave address,SA0=0
            Write_IIC_Byte(0x00);            //write command
            Write_IIC_Byte(IIC_Command);
            IIC_Stop();
        }
        /*********************OLED 设置坐标************************************/
        void OLED_Set_Pos(unsigned_char x, unsigned_char y)
        {
            OLED_WrCmd(Convert.ToByte( 0xb0 + y));
            OLED_WrCmd(Convert.ToByte(((x & 0xf0) >> 4) | 0x10));
            OLED_WrCmd(Convert.ToByte((x & 0x0f) | 0x00));
        }
        /*********************OLED全屏************************************/
        void OLED_Fill(unsigned_char bmp_dat)
        {
            unsigned_char y, x;
            for (y = 0; y < 8; y++)
            {
                OLED_WrCmd(Convert.ToByte(0xb0 + y));
                OLED_WrCmd(0x00);
                OLED_WrCmd(0x10);
                for (x = 0; x < X_WIDTH; x++)
                    OLED_WrDat(bmp_dat);
            }
        }
        /*********************OLED复位************************************/
        void OLED_CLS()
        {
            unsigned_char y, x;
            for (y = 0; y < 8; y++)
            {
                OLED_WrCmd(Convert.ToByte(0xb0 + y));
                OLED_WrCmd(0x01);
                OLED_WrCmd(0x10);
                for (x = 0; x < X_WIDTH; x++)
                    OLED_WrDat(0);
            }
        }
        /*********************OLED初始化************************************/

        void OLED_Init()
        {
            OLED_WrCmd(0xae);//--turn off oled panel关闭OLED面板
            OLED_WrCmd(0x00);//---set low column address设置低列地址00
            OLED_WrCmd(0x10);//---set high column address设置高列地址10
            OLED_WrCmd(0x40);//--set start line address  Set Mapping RAM Display Start Line (0x00~0x3F)设置起始行地址,设置映射RAM显示起始线
            OLED_WrCmd(0x81);//--set contrast control register设置对比度控制寄存器
            OLED_WrCmd(Brightness); // Set SEG Output Current Brightness设置SEG输出电流亮度
            OLED_WrCmd(0xa1);//--Set SEG/Column Mapping     0xa0左右反置 0xa1正常
            OLED_WrCmd(0xc8);//Set COM/Row Scan Direction   0xc0上下反置 0xc8正常
            OLED_WrCmd(0xa6);//--set normal display设置正常显示
            OLED_WrCmd(0xa8);//--set multiplex ratio(1 to 64)设置分辨率
            OLED_WrCmd(0x3f);//--12864 :0x3f    12832 0x1f
            OLED_WrCmd(0xd3);//-set display offset    Shift Mapping RAM Counter (0x00~0x3F)设置显示偏移量,移位映射RAM计数器
            OLED_WrCmd(0x00);//-not offset不是抵消
            OLED_WrCmd(0xd5);//--set display clock divide ratio/oscillator frequency设置显示时钟分频比/振荡器频率
            OLED_WrCmd(0x80);//--set divide ratio, Set Clock as 100 Frames/Sec
            OLED_WrCmd(0xd9);//--set pre-charge period
            OLED_WrCmd(0xf1);//Set Pre-Charge as 15 Clocks & Discharge as 1 Clock
            OLED_WrCmd(0xda);//--设置COM硬件引脚配置,适应分辨率
            OLED_WrCmd(0x12);//12864:0x12  12832 :0x02
            OLED_WrCmd(0xdb);//--set vcomh
            OLED_WrCmd(0x40);//Set VCOM Deselect Level
            OLED_WrCmd(0x20);//-Set Page Addressing Mode (0x00/0x01/0x02)
            OLED_WrCmd(0x02);//
            OLED_WrCmd(0x8d);//--set Charge Pump enable/disable
            OLED_WrCmd(0x14);//--set(0x10) disable
            OLED_WrCmd(0xa4);// Disable Entire Display On (0xa4/0xa5)
            OLED_WrCmd(0xa6);// Disable Inverse Display On (0xa6/a7) 
            OLED_WrCmd(0xaf);//--turn on oled panel打开OLED面板
            OLED_Fill(0x00); //初始清屏
            OLED_Set_Pos(0, 0);
        }
        /***************功能描述:显示6*8一组标准ASCII字符串    显示的坐标(x,y),y为页范围0~7****************/
        void OLED_P6x8Str(unsigned_char x, unsigned_char y, unsigned_char[] ch)
        {
            unsigned_char c = 0, i = 0, j = 0;
            while (ch[j] != '\0')
            {
                c = Convert.ToByte(ch[j] - 32);
                if (x > 126) { x = 0; y++; }
                OLED_Set_Pos(x, y);
                for (i = 0; i < 6; i++)
                    OLED_WrDat(Convert.ToByte(F6x8[c,i]));
                x += 6;
                j++;
            }
        }
        /*******************功能描述:显示8*16一组标准ASCII字符串     显示的坐标(x,y),y为页范围0~7****************/
        void OLED_P8x16Str(unsigned_char x, unsigned_char y, unsigned_char[] ch)
        {
            unsigned_char c = 0, i = 0, j = 0;
            while (ch[j] != '\0')
            {
                c = Convert.ToByte(ch[j] - 32);
                if (x>120) { x = 0; y++; }
                OLED_Set_Pos(x, y);
                for (i = 0; i<8; i++)
                    OLED_WrDat(F8X16[c * 16 + i]);
                OLED_Set_Pos(x, Convert.ToByte(y + 1));
                for (i = 0; i<8; i++)
                    OLED_WrDat(F8X16[c * 16 + i + 8]);
                x += 8;
                j++;
            }
        }


/*****************功能描述:显示16*16点阵  显示的坐标(x,y),y为页范围0~7****************************/
        void OLED_P16x16Ch(unsigned_char x, unsigned_char y, unsigned_char N)
        {
            unsigned_char wm = 0;
            unsigned_int adder = Convert.ToUInt16( 32 * N);
            OLED_Set_Pos(x, y);
            for (wm = 0; wm < 16; wm++)
            {
                OLED_WrDat(F16x16[adder]);
                adder += 1;
            }
            OLED_Set_Pos(x, Convert.ToByte( y + 1 ));
            for (wm = 0; wm < 16; wm++)
            {
                OLED_WrDat(F16x16[adder]);
                adder += 1;
            }
        }
        /***********功能描述:显示显示BMP图片128×64起始点坐标(x,y),x的范围0~127,y为页的范围0~7*****************/
        void Draw_BMP(unsigned_char x0, unsigned_char y0, unsigned_char x1, unsigned_char y1, unsigned_char[] BMP)
        {
            unsigned_int j = 0;
            unsigned_char x, y;

            if (y1 % 8 == 0)
                y = Convert.ToByte( y1 / 8);
            else 
                y = Convert.ToByte( y1 / 8 + 1);
            for (y = y0; y < y1; y++)
            {
                OLED_Set_Pos(x0, y);
                for (x = x0; x < x1; x++)
                {
                    OLED_WrDat(BMP[j++]);
                }
            }
        }

        internal void ShowTV()
        {
            //throw new NotImplementedException();
            Draw_BMP(0, 0, 128, 8, bilibili_tv);
        }

        /***************************16*16的点阵字体取模方式:共阴——列行式——逆向输出*********/
        byte[] F16x16 =
                {
                    0x00
                };


        /************************************6*8的点阵************************************/
        byte[,] F6x8 =
        {
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, },// sp
{0x00, 0x00, 0x00, 0x2f, 0x00, 0x00,},// !
{0x00, 0x00, 0x07, 0x00, 0x07, 0x00,},// "
{0x00, 0x14, 0x7f, 0x14, 0x7f, 0x14,},// #
{0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12,},// $
{0x00, 0x62, 0x64, 0x08, 0x13, 0x23,},// %
{0x00, 0x36, 0x49, 0x55, 0x22, 0x50,},// &
{0x00, 0x00, 0x05, 0x03, 0x00, 0x00,},// '
{0x00, 0x00, 0x1c, 0x22, 0x41, 0x00,},// (
{0x00, 0x00, 0x41, 0x22, 0x1c, 0x00,},// )
{0x00, 0x14, 0x08, 0x3E, 0x08, 0x14,},// *
{0x00, 0x08, 0x08, 0x3E, 0x08, 0x08,},// +
{0x00, 0x00, 0x00, 0xA0, 0x60, 0x00,},// ,
{0x00, 0x08, 0x08, 0x08, 0x08, 0x08,},// -
{0x00, 0x00, 0x60, 0x60, 0x00, 0x00,},// .
{0x00, 0x20, 0x10, 0x08, 0x04, 0x02,},// /
{0x00, 0x3E, 0x51, 0x49, 0x45, 0x3E,},// 0
{0x00, 0x00, 0x42, 0x7F, 0x40, 0x00,},// 1
{0x00, 0x42, 0x61, 0x51, 0x49, 0x46,},// 2
{0x00, 0x21, 0x41, 0x45, 0x4B, 0x31,},// 3
{0x00, 0x18, 0x14, 0x12, 0x7F, 0x10,},// 4
{0x00, 0x27, 0x45, 0x45, 0x45, 0x39,},// 5
{0x00, 0x3C, 0x4A, 0x49, 0x49, 0x30,},// 6
{0x00, 0x01, 0x71, 0x09, 0x05, 0x03,},// 7
{0x00, 0x36, 0x49, 0x49, 0x49, 0x36,},// 8
{0x00, 0x06, 0x49, 0x49, 0x29, 0x1E,},// 9
{0x00, 0x00, 0x36, 0x36, 0x00, 0x00,},// :
{0x00, 0x00, 0x56, 0x36, 0x00, 0x00,},// ,
{0x00, 0x08, 0x14, 0x22, 0x41, 0x00,},// <
{0x00, 0x14, 0x14, 0x14, 0x14, 0x14,},// =
{0x00, 0x00, 0x41, 0x22, 0x14, 0x08,},// >
{0x00, 0x02, 0x01, 0x51, 0x09, 0x06,},// ?
{0x00, 0x32, 0x49, 0x59, 0x51, 0x3E,},// @
{0x00, 0x7C, 0x12, 0x11, 0x12, 0x7C,},// A
{0x00, 0x7F, 0x49, 0x49, 0x49, 0x36,},// B
{0x00, 0x3E, 0x41, 0x41, 0x41, 0x22,},// C
{0x00, 0x7F, 0x41, 0x41, 0x22, 0x1C,},// D
{0x00, 0x7F, 0x49, 0x49, 0x49, 0x41,},// E
{0x00, 0x7F, 0x09, 0x09, 0x09, 0x01,},// F
{0x00, 0x3E, 0x41, 0x49, 0x49, 0x7A,},// G
{0x00, 0x7F, 0x08, 0x08, 0x08, 0x7F,},// H
{0x00, 0x00, 0x41, 0x7F, 0x41, 0x00,},// I
{0x00, 0x20, 0x40, 0x41, 0x3F, 0x01,},// J
{0x00, 0x7F, 0x08, 0x14, 0x22, 0x41,},// K
{0x00, 0x7F, 0x40, 0x40, 0x40, 0x40,},// L
{0x00, 0x7F, 0x02, 0x0C, 0x02, 0x7F,},// M
{0x00, 0x7F, 0x04, 0x08, 0x10, 0x7F,},// N
{0x00, 0x3E, 0x41, 0x41, 0x41, 0x3E,},// O
{0x00, 0x7F, 0x09, 0x09, 0x09, 0x06,},// P
{0x00, 0x3E, 0x41, 0x51, 0x21, 0x5E,},// Q
{0x00, 0x7F, 0x09, 0x19, 0x29, 0x46,},// R
{0x00, 0x46, 0x49, 0x49, 0x49, 0x31,},// S
{0x00, 0x01, 0x01, 0x7F, 0x01, 0x01,},// T
{0x00, 0x3F, 0x40, 0x40, 0x40, 0x3F,},// U
{0x00, 0x1F, 0x20, 0x40, 0x20, 0x1F,},// V
{0x00, 0x3F, 0x40, 0x38, 0x40, 0x3F,},// W
{0x00, 0x63, 0x14, 0x08, 0x14, 0x63,},// X
{0x00, 0x07, 0x08, 0x70, 0x08, 0x07,},// Y
{0x00, 0x61, 0x51, 0x49, 0x45, 0x43,},// Z
{0x00, 0x00, 0x7F, 0x41, 0x41, 0x00,},// [
{0x00, 0x55, 0x2A, 0x55, 0x2A, 0x55,},// 55
{0x00, 0x00, 0x41, 0x41, 0x7F, 0x00,},// ]
{0x00, 0x04, 0x02, 0x01, 0x02, 0x04,},// ^
{0x00, 0x40, 0x40, 0x40, 0x40, 0x40,},// _
{0x00, 0x00, 0x01, 0x02, 0x04, 0x00,},// '
{0x00, 0x20, 0x54, 0x54, 0x54, 0x78,},// a
{0x00, 0x7F, 0x48, 0x44, 0x44, 0x38,},// b
{0x00, 0x38, 0x44, 0x44, 0x44, 0x20,},// c
{0x00, 0x38, 0x44, 0x44, 0x48, 0x7F,},// d
{0x00, 0x38, 0x54, 0x54, 0x54, 0x18,},// e
{0x00, 0x08, 0x7E, 0x09, 0x01, 0x02,},// f
{0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C,},// g
{0x00, 0x7F, 0x08, 0x04, 0x04, 0x78,},// h
{0x00, 0x00, 0x44, 0x7D, 0x40, 0x00,},// i
{0x00, 0x40, 0x80, 0x84, 0x7D, 0x00,},// j
{0x00, 0x7F, 0x10, 0x28, 0x44, 0x00,},// k
{0x00, 0x00, 0x41, 0x7F, 0x40, 0x00,},// l
{0x00, 0x7C, 0x04, 0x18, 0x04, 0x78,},// m
{0x00, 0x7C, 0x08, 0x04, 0x04, 0x78,},// n
{0x00, 0x38, 0x44, 0x44, 0x44, 0x38,},// o
{0x00, 0xFC, 0x24, 0x24, 0x24, 0x18,},// p
{0x00, 0x18, 0x24, 0x24, 0x18, 0xFC,},// q
{0x00, 0x7C, 0x08, 0x04, 0x04, 0x08,},// r
{0x00, 0x48, 0x54, 0x54, 0x54, 0x20,},// s
{0x00, 0x04, 0x3F, 0x44, 0x40, 0x20,},// t
{0x00, 0x3C, 0x40, 0x40, 0x20, 0x7C,},// u
{0x00, 0x1C, 0x20, 0x40, 0x20, 0x1C,},// v
{0x00, 0x3C, 0x40, 0x30, 0x40, 0x3C,},// w
{0x00, 0x44, 0x28, 0x10, 0x28, 0x44,},// x
{0x00, 0x1C, 0xA0, 0xA0, 0xA0, 0x7C,},// y
{0x00, 0x44, 0x64, 0x54, 0x4C, 0x44,},// z
{0x14, 0x14, 0x14, 0x14, 0x14, 0x14,},// horiz lines
};
        /****************************************8*16的点阵************************************/
        byte[] F8X16 =
        {
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,// 0
    0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x30,0x00,0x00,0x00,//! 1
    0x00,0x10,0x0C,0x06,0x10,0x0C,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//" 2
    0x40,0xC0,0x78,0x40,0xC0,0x78,0x40,0x00,0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00,//# 3
    0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00,//$ 4
    0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00,//% 5
    0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10,//& 6
    0x10,0x16,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//' 7
    0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00,//( 8
    0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00,//) 9
    0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00,//* 10
    0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00,//+ 11
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00,//, 12
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,//- 13
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,//. 14
    0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x04,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00,/// 15
    0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,//0 16
    0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,//1 17
    0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,//2 18
    0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,//3 19
    0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,//4 20
    0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,//5 21
    0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,//6 22
    0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,//7 23
    0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,//8 24
    0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,//9 25
    0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,//: 26
    0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x60,0x00,0x00,0x00,0x00,//; 27
    0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00,//< 28
    0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00,//= 29
    0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00,//> 30
    0x00,0x70,0x48,0x08,0x08,0x08,0xF0,0x00,0x00,0x00,0x00,0x30,0x36,0x01,0x00,0x00,//? 31
    0xC0,0x30,0xC8,0x28,0xE8,0x10,0xE0,0x00,0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00,//@ 32
    0x00,0x00,0xC0,0x38,0xE0,0x00,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x27,0x38,0x20,//A 33
    0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00,//B 34
    0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00,//C 35
    0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00,//D 36
    0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00,//E 37
    0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00,//F 38
    0xC0,0x30,0x08,0x08,0x08,0x38,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00,//G 39
    0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20,//H 40
    0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,//I 41
    0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00,//J 42
    0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00,//K 43
    0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00,//L 44
    0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00,//M 45
    0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00,//N 46
    0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00,//O 47
    0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00,//P 48
    0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00,//Q 49
    0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20,//R 50
    0x00,0x70,0x88,0x08,0x08,0x08,0x38,0x00,0x00,0x38,0x20,0x21,0x21,0x22,0x1C,0x00,//S 51
    0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00,//T 52
    0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00,//U 53
    0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00,//V 54
    0xF8,0x08,0x00,0xF8,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00,//W 55
    0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20,//X 56
    0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00,//Y 57
    0x10,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x18,0x00,//Z 58
    0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00,//[ 59
    0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x38,0xC0,0x00,//\ 60
    0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00,//] 61
    0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//^ 62
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,//_ 63
    0x00,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//` 64
    0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20,//a 65
    0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00,//b 66
    0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00,//c 67
    0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20,//d 68
    0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00,//e 69
    0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,//f 70
    0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00,//g 71
    0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20,//h 72
    0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,//i 73
    0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,//j 74
    0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00,//k 75
    0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,//l 76
    0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F,//m 77
    0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20,//n 78
    0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00,//o 79
    0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00,//p 80
    0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0xA0,0xFF,0x80,//q 81
    0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00,//r 82
    0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x33,0x24,0x24,0x24,0x24,0x19,0x00,//s 83
    0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00,//t 84
    0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20,//u 85
    0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x01,0x0E,0x30,0x08,0x06,0x01,0x00,//v 86
    0x80,0x80,0x00,0x80,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00,//w 87
    0x00,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x31,0x2E,0x0E,0x31,0x20,0x00,//x 88
    0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00,//y 89
    0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00,//z 90
    0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40,//{ 91
    0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,//| 92
    0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00,//} 93
    0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//~ 94
};


        byte[] bilibili_tv = {
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x80,0x80,0x80,0x80,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xE0,0xE0,
    0xE0,0xE0,0xE0,0xE0,0xE0,0xF0,0xF0,0xF0,0xF0,0xF8,0xFC,0xFC,0xFC,0xFC,0xFE,0xFE,
    0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0xE0,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
    0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFC,0xFC,0xFC,0xF8,0xF0,0xF0,0xF0,0xF0,
    0xF0,0xF0,0xF0,0xF0,0xE0,0xE0,0xE0,0xE0,0xC0,0xC0,0xC0,0x80,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
    0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
    0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0x7F,0x7F,0x7F,0x3F,0x1F,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x1F,0x3F,0x3F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0x7F,0xFF,0xFF,0xFF,0xFF,
    0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
    0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x1F,0x3F,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0x3F,0x3F,
    0x3F,0x3F,0x1F,0x1F,0x1F,0x1F,0x1F,0x0F,0x07,0x07,0x07,0x07,0x07,0x07,0x03,0x03,
    0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x01,0x01,0x03,0x03,0x07,0x07,0x07,0x07,0x07,0x07,0x0F,0x1F,0x1F,0x1F,0x1F,
    0x1F,0x1F,0x1F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x1F,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xC0,0xE0,0xE0,0xC0,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0xF0,0xE0,
    0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x80,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x06,0x0F,0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,
    0xFC,0xF8,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF8,0xFC,0xFE,0xFF,0xFF,0xFF,0xFF,
    0xFF,0xFF,0xFE,0xFC,0xFC,0xFC,0xF8,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF8,0xFC,
    0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0x3F,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x07,0x07,0x0F,0x0F,0x0F,
    0x0F,0x1F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x1F,0x0F,0x0F,0x07,0x07,
    0x07,0x07,0x07,0x0F,0x1F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x1F,0x0F,
    0x07,0x07,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//G:\项目\ch340小电视\未标题-1.bmp,0,
};/***************************16*16的点阵字体取模方式:共阴——列行式——逆向输出*********/

    }
}

逻辑分析仪捕获的波形

此段波形对应代码:

初始化部分对应的逻辑 分析仪数据

 OLED_WrCmd(0xae);//--turn off oled panel关闭OLED面板
            OLED_WrCmd(0x00);//---set low column address设置低列地址00
            OLED_WrCmd(0x10);//---set high column address设置高列地址10
            OLED_WrCmd(0x40);//--set start line address  Set Mapping RAM Display Start Line (0x00~0x3F)设置起始行地址,设置映射RAM显示起始线
            OLED_WrCmd(0x81);//--set contrast control register设置对比度控制寄存器
            OLED_WrCmd(Brightness); // Set SEG Output Current Brightness设置SEG输出电流亮度
            OLED_WrCmd(0xa1);//--Set SEG/Column Mapping     0xa0左右反置 0xa1正常
            OLED_WrCmd(0xc8);//Set COM/Row Scan Direction   0xc0上下反置 0xc8正常
            OLED_WrCmd(0xa6);//--set normal display设置正常显示
            OLED_WrCmd(0xa8);//--set multiplex ratio(1 to 64)设置分辨率
            OLED_WrCmd(0x3f);//--12864 :0x3f    12832 0x1f
            OLED_WrCmd(0xd3);//-set display offset    Shift Mapping RAM Counter (0x00~0x3F)设置显示偏移量,移位映射RAM计数器
            OLED_WrCmd(0x00);//-not offset不是抵消
            OLED_WrCmd(0xd5);//--set display clock divide ratio/oscillator frequency设置显示时钟分频比/振荡器频率
            OLED_WrCmd(0x80);//--set divide ratio, Set Clock as 100 Frames/Sec
            OLED_WrCmd(0xd9);//--set pre-charge period
            OLED_WrCmd(0xf1);//Set Pre-Charge as 15 Clocks & Discharge as 1 Clock
            OLED_WrCmd(0xda);//--设置COM硬件引脚配置,适应分辨率
            OLED_WrCmd(0x12);//12864:0x12  12832 :0x02
            OLED_WrCmd(0xdb);//--set vcomh
            OLED_WrCmd(0x40);//Set VCOM Deselect Level
            OLED_WrCmd(0x20);//-Set Page Addressing Mode (0x00/0x01/0x02)
            OLED_WrCmd(0x02);//
            OLED_WrCmd(0x8d);//--set Charge Pump enable/disable
            OLED_WrCmd(0x14);//--set(0x10) disable
            OLED_WrCmd(0xa4);// Disable Entire Display On (0xa4/0xa5)
            OLED_WrCmd(0xa6);// Disable Inverse Display On (0xa6/a7) 
            OLED_WrCmd(0xaf);//--turn on oled panel打开OLED面板
Time [s],Channel 2,Channel 3
-2.560844500,1,1
0.000000000,1,0
0.001940000,1,1
0.012673500,1,0
0.013260500,0,0
0.013914000,1,0
0.014415000,0,0
0.014862500,0,1
0.015331500,1,1
0.015761000,0,1
0.016240500,1,1
0.016700000,0,1
0.017210500,1,1
0.017708500,0,1
0.018245500,1,1
0.018700000,0,1
0.019228000,0,0
0.019710000,1,0
0.020280000,0,0
0.020774500,1,0
0.021248500,0,0
0.021737000,1,0
0.022239500,0,0
0.022737500,0,1
0.023273500,1,1
0.023794000,0,1
0.024382500,0,0
0.024951000,1,0
0.025516000,0,0
0.026108000,1,0
0.026620000,0,0
0.027113500,1,0
0.027575000,0,0
0.028030000,1,0
0.028569000,0,0
0.029108000,1,0
0.029582500,0,0
0.030016000,1,0
0.030516500,0,0
0.030941000,1,0
0.031433000,0,0
0.031874000,1,0
0.032330000,0,0
0.032774000,0,1
0.033239000,1,1
0.033691500,0,1
0.034166500,1,1
0.034620000,0,1
0.035108500,0,0
0.035538000,1,0
0.035956500,0,0
0.036428000,0,1
0.036884000,1,1
0.037342500,0,1
0.037773000,0,0
0.038229000,1,0
0.038669000,0,0
0.039109000,0,1
0.039577500,1,1
0.040018500,0,1
0.040571000,1,1
0.041109000,0,1
0.041602000,1,1
0.042109000,0,1
0.042558500,0,0
0.042992000,1,0
0.043458000,0,0
0.043905500,0,1
0.044374500,1,1
0.044830000,0,1
0.045765000,0,0
0.046257000,1,0
0.046701000,1,1
0.047668500,1,0
0.048158500,0,0
0.048628500,1,0
0.049168500,0,0
0.049652500,0,1
0.050219000,1,1
0.050660500,0,1
0.051115000,1,1
0.051561000,0,1
0.052109500,1,1
0.052589000,0,1
0.053026500,1,1
0.053595000,0,1
0.054109500,0,0
0.054641500,1,0
0.055139000,0,0
0.055728000,1,0
0.056371000,0,0
0.056922000,1,0
0.057498000,0,0
0.057994500,0,1
0.058510500,1,1
0.058954500,0,1
0.059430000,0,0
0.059864500,1,0
0.060363500,0,0
0.060824000,1,0
0.061402000,0,0
0.061893500,1,0
0.062431000,0,0
0.062909500,1,0
0.063387000,0,0
0.063836500,1,0
0.064313500,0,0
0.064766000,1,0
0.065241000,0,0
0.065712000,1,0
0.066245000,0,0
0.066710500,1,0
0.067155000,0,0
0.067590500,0,1
0.068032000,1,1
0.068546500,0,1
0.068981000,0,0
0.069465000,1,0
0.069898500,0,0
0.070355000,1,0
0.070799500,0,0
0.071255000,1,0
0.071705500,0,0
0.072180500,1,0
0.072623500,0,0
0.073111000,1,0
0.073532000,0,0
0.073958500,1,0
0.074435000,0,0
0.074866500,1,0
0.075354000,0,0
0.075805500,1,0
0.076259500,0,0
0.076707500,0,1
0.077211500,1,1
0.077666500,0,1
0.078467500,0,0
0.078940000,1,0
0.079482500,1,1
0.080406000,1,0
0.080877500,0,0
0.081373500,1,0
0.081864500,0,0
0.082338500,0,1
0.082844500,1,1
0.083362500,0,1
0.083862000,1,1
0.084385500,0,1
0.084901000,1,1
0.085641000,0,1
0.086242000,1,1
0.086758500,0,1
0.087244000,0,0
0.087764000,1,0
0.088236500,0,0
0.088691500,1,0
0.089160000,0,0
0.089607000,1,0
0.090112000,0,0
0.090539500,0,1
0.090985000,1,1
0.091480000,0,1
0.091931500,0,0
0.092436500,1,0
0.092885000,0,0
0.093362000,1,0
0.093820000,0,0
0.094311500,1,0
0.094741500,0,0
0.095236500,1,0
0.095677000,0,0
0.096160000,1,0
0.096597000,0,0
0.097112500,1,0
0.097537000,0,0
0.097989000,1,0
0.098469000,0,0
0.098915500,1,0
0.099368000,0,0
0.099806000,0,1
0.100315500,1,1
0.100743000,0,1
0.101243000,0,0
0.101711000,1,0
0.102233500,0,0
0.102669500,1,0
0.103192000,0,0
0.103662000,1,0
0.104222000,0,0
0.104653000,0,1
0.105118000,1,1
0.105535500,0,1
0.105969500,0,0
0.106514500,1,0
0.107019000,0,0
0.107529500,1,0
0.107960500,0,0
0.108460000,1,0
0.108878000,0,0
0.109383000,1,0
0.109819500,0,0
0.110339000,0,1
0.110800000,1,1
0.111330000,0,1
0.112249000,0,0
0.112733500,1,0
0.113248000,1,1
0.114222500,1,0
0.114693500,0,0
0.115188500,1,0
0.115684000,0,0
0.116264000,0,1
0.116800000,1,1
0.117367500,0,1
0.117875000,1,1
0.118398000,0,1
0.118886500,1,1
0.119385500,0,1
0.120006000,1,1
0.120573500,0,1
0.121203500,0,0
0.121880000,1,0
0.122516500,0,0
0.123015000,1,0
0.123484500,0,0
0.123946500,1,0
0.124442000,0,0
0.124871000,0,1
0.125367500,1,1
0.125838000,0,1
0.126310500,0,0
0.126765000,1,0
0.127234500,0,0
0.127689000,1,0
0.128248000,0,0
0.128738500,1,0
0.129234000,0,0
0.129687500,1,0
0.130162000,0,0
0.130623500,1,0
0.131114500,0,0
0.131539500,1,0
0.132010500,0,0
0.132482500,1,0
0.132928000,0,0
0.133377000,1,0
0.133813000,0,0
0.134310000,0,1
0.134754500,1,1
0.135248000,0,1
0.135667000,0,0
0.136178000,1,0
0.136622000,0,0
0.137115000,0,1
0.137544500,1,1
0.137985000,0,1
0.138470000,0,0
0.138907000,1,0
0.139393000,0,0
0.139826500,1,0
0.140324500,0,0
0.140756000,1,0
0.141246500,0,0
0.141708000,1,0
0.142250500,0,0
0.142695000,1,0
0.143263000,0,0
0.143705000,1,0
0.144252500,0,0
0.144733500,0,1
0.145257000,1,1
0.145735500,0,1
0.146646500,0,0
0.147120500,1,0
0.147654000,1,1
0.148680000,1,0
0.149295000,0,0
0.149861500,1,0
0.150515500,0,0
0.151023000,0,1
0.151670000,1,1
0.152255000,0,1
0.152797000,1,1
0.153325500,0,1
0.153784000,1,1
0.154259000,0,1
0.154695000,1,1
0.155171500,0,1
0.155594000,0,0
0.156116000,1,0
0.156568000,0,0
0.157002500,1,0
0.157490500,0,0
0.157931500,1,0
0.158389500,0,0
0.158826500,0,1
0.159306500,1,1
0.159751500,0,1
0.160237000,0,0
0.160695500,1,0
0.161247000,0,0
0.161762000,1,0
0.162253500,0,0
0.162707000,1,0
0.163246000,0,0
0.163697500,1,0
0.164198000,0,0
0.164703000,1,0
0.165274500,0,0
0.165859500,1,0
0.166446500,0,0
0.166969500,1,0
0.167599000,0,0
0.168338500,1,0
0.168851000,0,0
0.169363500,0,1
0.169799500,1,1
0.170261500,0,1
0.170691000,1,1
0.171122000,0,1
0.171550000,0,0
0.171998000,1,0
0.172472500,0,0
0.172922000,1,0
0.173414000,0,0
0.173901500,1,0
0.174453000,0,0
0.174928500,1,0
0.175528000,0,0
0.176018000,1,0
0.176545500,0,0
0.177122500,1,0
0.177715500,0,0
0.178265000,0,1
0.178775000,1,1
0.179294000,0,1
0.179764500,1,1
0.180263500,0,1
0.181117500,0,0
0.181553000,1,0
0.181972000,1,1
0.182813500,1,0
0.183260000,0,0
0.183695500,1,0
0.184265000,0,0
0.184691000,0,1
0.185171500,1,1
0.185599500,0,1
0.186043500,1,1
0.186506500,0,1
0.186942500,1,1
0.187440500,0,1
0.187873500,1,1
0.188361000,0,1
0.188868000,0,0
0.189399500,1,0
0.189877000,0,0
0.190370000,1,0
0.190800000,0,0
0.191266000,1,0
0.191697500,0,0
0.192123500,0,1
0.192589000,1,1
0.193009500,0,1
0.193469500,0,0
0.193970000,1,0
0.194492000,0,0
0.194912000,1,0
0.195378000,0,0
0.195797500,1,0
0.196281000,0,0
0.196713000,1,0
0.197174000,0,0
0.197621500,1,0
0.198046500,0,0
0.198541000,1,0
0.198977000,0,0
0.199488000,1,0
0.199913500,0,0
0.200380000,1,0
0.200816000,0,0
0.201742000,0,1
0.202248000,1,1
0.202668500,0,1
0.203124000,1,1
0.203543000,0,1
0.203999500,1,1
0.204498500,0,1
0.204989000,0,0
0.205558000,1,0
0.206027000,0,0
0.206527500,1,0
0.207014000,0,0
0.207537000,0,1
0.207998000,1,1
0.208499500,0,1
0.208970000,1,1
0.209496500,0,1
0.209966000,1,1
0.210550000,0,1
0.211119000,1,1
0.211602500,0,1
0.212047000,1,1
0.212588500,0,1
0.213474500,0,0
0.213962500,1,0
0.214476500,1,1
0.215399000,1,0
0.215896000,0,0
0.216408500,1,0
0.216914500,0,0
0.217412000,0,1
0.217884500,1,1
0.218381000,0,1
0.218826500,1,1
0.219365000,0,1
0.219825000,1,1
0.220363000,0,1
0.220822500,1,1
0.221375500,0,1
0.221828000,0,0
0.222355500,1,0
0.222798500,0,0
0.223338000,1,0
0.223826500,0,0
0.224332500,1,0
0.224840500,0,0
0.225330500,0,1
0.225955000,1,1
0.226615500,0,1
0.227239500,0,0
0.227698000,1,0
0.228218500,0,0
0.228683000,1,0
0.229246500,0,0
0.229732500,1,0
0.230278500,0,0
0.230753000,1,0
0.231229500,0,0
0.231665500,1,0
0.232125500,0,0
0.232577000,1,0
0.233000000,0,0
0.233481000,1,0
0.233902000,0,0
0.234364000,1,0
0.234879000,0,0
0.235349000,0,1
0.235842000,1,1
0.236339500,0,1
0.236837500,1,1
0.237329500,0,1
0.237795000,0,0
0.238371500,1,0
0.238843500,0,0
0.239302500,0,1
0.239739000,1,1
0.240214000,0,1
0.240673500,0,0
0.241121000,1,0
0.241545000,0,0
0.241975500,1,0
0.242544000,0,0
0.243121500,1,0
0.243641000,0,0
0.244130500,1,0
0.244614500,0,0
0.245121500,0,1
0.245578000,1,1
0.246014500,0,1
0.246482000,1,1
0.246907000,0,1
0.247743500,0,0
0.248245500,1,0
0.248679000,1,1
0.249533000,1,0
0.249990500,0,0
0.250465000,1,0
0.250883000,0,0
0.251336500,0,1
0.251806000,1,1
0.252377500,0,1
0.252875000,1,1
0.253367000,0,1
0.253791500,1,1
0.254264500,0,1
0.254685500,1,1
0.255139500,0,1
0.255573000,0,0
0.256001500,1,0
0.256453000,0,0
0.256871000,1,0
0.257356000,0,0
0.257771500,1,0
0.258242500,0,0
0.258661000,0,1
0.259122000,1,1
0.259560500,0,1
0.259991000,0,0
0.260478000,1,0
0.260894500,0,0
0.261357000,1,0
0.261794000,0,0
0.262267500,1,0
0.262696000,0,0
0.263178000,1,0
0.263599500,0,0
0.264034000,1,0
0.264516000,0,0
0.264962000,1,0
0.265436500,0,0
0.265894000,1,0
0.266371000,0,0
0.266813000,1,0
0.267277500,0,0
0.267763000,0,1
0.268259500,1,1
0.268728500,0,1
0.269251500,1,1
0.269733000,0,1
0.270279500,1,1
0.270741000,0,1
0.271247000,0,0
0.271696500,1,0
0.272123000,0,0
0.272572000,1,0
0.272967500,0,0
0.273500000,0,1
0.274018000,1,1
0.274567000,0,1
0.275027500,0,0
0.275498000,1,0
0.275912500,0,0
0.276372000,1,0
0.276819500,0,0
0.277269000,1,0
0.277704500,0,0
0.278128500,0,1
0.278605500,1,1
0.279042000,0,1
0.279882000,0,0
0.280366500,1,0
0.280799000,1,1
0.281631000,1,0
0.282123500,0,0
0.282571000,1,0
0.283025000,0,0
0.283520500,0,1
0.283982000,1,1
0.284500000,0,1
0.284918000,1,1
0.285380500,0,1
0.285829500,1,1
0.286269000,0,1
0.286724000,1,1
0.287164500,0,1
0.287607000,0,0
0.288027000,1,0
0.288492000,0,0
0.288913000,1,0
0.289370500,0,0
0.289789500,1,0
0.290255500,0,0
0.290682500,0,1
0.291129500,1,1
0.291573000,0,1
0.291995500,0,0
0.292482500,1,0
0.292897000,0,0
0.293377500,1,0
0.293793000,0,0
0.294259000,1,0
0.294688000,0,0
0.295124500,1,0
0.295554000,0,0
0.295985000,1,0
0.296478500,0,0
0.296898000,1,0
0.297386000,0,0
0.297852500,1,0
0.298500000,0,0
0.298953500,1,0
0.299536000,0,0
0.300050000,0,1
0.300589500,1,1
0.301124500,0,1
0.301562500,1,1
0.302022500,0,1
0.302590000,0,0
0.303130000,1,0
0.303600500,0,0
0.304046500,0,1
0.304624000,1,1
0.305179500,0,1
0.305598500,0,0
0.306125000,1,0
0.306601000,0,0
0.307035500,1,0
0.307578000,0,0
0.308017500,0,1
0.308504000,1,1
0.308929000,0,1
0.309418000,1,1
0.309848000,0,1
0.310321500,0,0
0.310754500,1,0
0.311225500,0,0
0.311661500,0,1
0.312130500,1,1
0.312576500,0,1
0.313528000,0,0
0.313999500,1,0
0.314542500,1,1
0.315396500,1,0
0.315885500,0,0
0.316368500,1,0
0.316834500,0,0
0.317345500,0,1
0.317835500,1,1
0.318330000,0,1
0.318896500,1,1
0.319454000,0,1
0.319997000,1,1
0.320515500,0,1
0.320997000,1,1
0.321484000,0,1
0.321910500,0,0
0.322385500,1,0
0.322817000,0,0
0.323265500,1,0
0.323698500,0,0
0.324182500,1,0
0.324602000,0,0
0.325046000,0,1
0.325603000,1,1
0.326141500,0,1
0.326646000,0,0
0.327188000,1,0
0.327640500,0,0
0.328126500,1,0
0.328620500,0,0
0.329126500,1,0
0.329654500,0,0
0.330131500,1,0
0.330642500,0,0
0.331189500,1,0
0.331712000,0,0
0.332282500,1,0
0.332810000,0,0
0.333271500,1,0
0.333756000,0,0
0.334275500,1,0
0.334801000,0,0
0.335386000,0,1
0.335902500,1,1
0.336377000,0,1
0.336792500,1,1
0.337299000,0,1
0.337763000,0,0
0.338276500,1,0
0.338766500,0,0
0.339270000,0,1
0.339790000,1,1
0.340256500,0,1
0.340730500,0,0
0.341247000,1,0
0.341699000,0,0
0.342132500,0,1
0.342596000,1,1
0.343034000,0,1
0.343519000,0,0
0.343978000,1,0
0.344462000,0,0
0.344908500,1,0
0.345352500,0,0
0.345787500,1,0
0.346263000,0,0
0.346707000,0,1
0.347133000,1,1
0.347585000,0,1
0.348382000,0,0
0.348832500,1,0
0.349257000,1,1
0.350185500,1,0
0.350704500,0,0
0.351231000,1,0
0.351676000,0,0
0.352133000,0,1
0.352594000,1,1
0.353026500,0,1
0.353479000,1,1
0.353934500,0,1
0.354399000,1,1
0.354848500,0,1
0.355327500,1,1
0.355775500,0,1
0.356248500,0,0
0.356713500,1,0
0.357179500,0,0
0.357628000,1,0
0.358133500,0,0
0.358635500,1,0
0.359142000,0,0
0.359621500,0,1
0.360128000,1,1
0.360690500,0,1
0.361237000,0,0
0.361722000,1,0
0.362288000,0,0
0.362794000,1,0
0.363276000,0,0
0.363805500,1,0
0.364371500,0,0
0.364881000,1,0
0.365385000,0,0
0.365829500,1,0
0.366327500,0,0
0.366774000,1,0
0.367252000,0,0
0.367687000,1,0
0.368258000,0,0
0.368749500,1,0
0.369277500,0,0
0.369798000,0,1
0.370261000,1,1
0.370703000,0,1
0.371177500,0,0
0.371623500,1,0
0.372129000,0,0
0.372571000,1,0
0.373129000,0,0
0.373551000,0,1
0.374129000,1,1
0.374622000,0,1
0.375134500,1,1
0.375642000,0,1
0.376134500,1,1
0.376613500,0,1
0.377030000,1,1
0.377543500,0,1
0.377975000,1,1
0.378497500,0,1
0.378934500,1,1
0.379421500,0,1
0.379849500,1,1
0.380337000,0,1
0.381134500,0,0
0.381583500,1,0
0.382008500,1,1
0.382877500,1,0
0.383387000,0,0
0.383845000,1,0
0.384400000,0,0
0.384844500,0,1
0.385329500,1,1
0.385760500,0,1
0.386261500,1,1
0.386711500,0,1
0.387181500,1,1
0.387636500,0,1
0.388130000,1,1
0.388581000,0,1
0.389130000,0,0
0.389643500,1,0
0.390135500,0,0
0.390586500,1,0
0.391030500,0,0
0.391477000,1,0
0.391941000,0,0
0.392488000,0,1
0.392970000,1,1
0.393489000,0,1
0.394000500,0,0
0.394564000,1,0
0.395130500,0,0
0.395591000,1,0
0.396050500,0,0
0.396548000,1,0
0.397039000,0,0
0.397615500,1,0
0.398130500,0,0
0.398629500,1,0
0.399056500,0,0
0.399589000,1,0
0.400006500,0,0
0.400500500,1,0
0.400924000,0,0
0.401364000,1,0
0.401795000,0,0
0.402262000,0,1
0.402739000,1,1
0.403267500,0,1
0.403763000,1,1
0.404232000,0,1
0.404708000,1,1
0.405193500,0,1
0.405627500,0,0
0.406131000,1,0
0.406579000,0,0
0.407012000,0,1
0.407485500,1,1
0.407918000,0,1
0.408390500,0,0
0.408856500,1,0
0.409359000,0,0
0.409812000,1,0
0.410263500,0,0
0.410781000,0,1
0.411440500,1,1
0.411985500,0,1
0.412571500,1,1
0.413057000,0,1
0.413601500,1,1
0.414131500,0,1
0.414950500,0,0
0.415473000,1,0
0.415897000,1,1
0.416722000,1,0
0.417173500,0,0
0.417617000,1,0
0.418037500,0,0
0.418534000,0,1
0.418960000,1,1
0.419488500,0,1
0.419920500,1,1
0.420507000,0,1
0.420980500,1,1
0.421492500,0,1
0.422008500,1,1
0.422535000,0,1
0.423014000,0,0
0.423625500,1,0
0.424137500,0,0
0.424588000,1,0
0.425047500,0,0
0.425560000,1,0
0.426028000,0,0
0.426489000,0,1
0.427016500,1,1
0.427519000,0,1
0.427987000,0,0
0.428487000,1,0
0.428941000,0,0
0.429474500,1,0
0.429942000,0,0
0.430508500,1,0
0.430966500,0,0
0.431544500,1,0
0.432038500,0,0
0.432528500,1,0
0.432992500,0,0
0.433538500,1,0
0.434021000,0,0
0.434530500,1,0
0.435036000,0,0
0.435523500,1,0
0.436016500,0,0
0.436508000,0,1
0.437008000,1,1
0.437501000,0,1
0.438019000,0,0
0.438617000,1,0
0.439316500,0,0
0.439848500,1,0
0.440376500,0,0
0.440831500,1,0
0.441333000,0,0
0.441768000,1,0
0.442266000,0,0
0.442763500,1,0
0.443283000,0,0
0.443794500,1,0
0.444277000,0,0
0.444731500,1,0
0.445180500,0,0
0.445612500,1,0
0.446056000,0,0
0.446519000,0,1
0.446962500,1,1
0.447459500,0,1
0.448284000,0,0
0.448720500,1,0
0.449174500,1,1
0.449986500,1,0
0.450472500,0,0
0.450934000,1,0
0.451402000,0,0
0.451853500,0,1
0.452361500,1,1
0.452818500,0,1
0.453262500,1,1
0.453711500,0,1
0.454189500,1,1
0.454672000,0,1
0.455197500,1,1
0.455661500,0,1
0.456188000,0,0
0.456641500,1,0
0.457201500,0,0
0.457646000,1,0
0.458134500,0,0
0.458565500,1,0
0.459008000,0,0
0.459480500,0,1
0.459910000,1,1
0.460379500,0,1
0.460802000,0,0
0.461269500,1,0
0.461708000,0,0
0.462187500,1,0
0.462613500,0,0
0.463058000,1,0
0.463525000,0,0
0.463977500,1,0
0.464461500,0,0
0.464891500,1,0
0.465384000,0,0
0.465818500,1,0
0.466268000,0,0
0.466741500,1,0
0.467275000,0,0
0.467710000,1,0
0.468185500,0,0
0.468630000,0,1
0.469135000,1,1
0.469563000,0,1
0.469984000,1,1
0.470494500,0,1
0.470927500,1,1
0.471409500,0,1
0.471841000,0,0
0.472346500,1,0
0.472773000,0,0
0.473258500,0,1
0.473708500,1,1
0.474142500,0,1
0.474588500,0,0
0.475023000,1,0
0.475485500,0,0
0.475904000,0,1
0.476378500,1,1
0.476803000,0,1
0.477265000,0,0
0.477701500,1,0
0.478192500,0,0
0.478616500,0,1
0.479062000,1,1
0.479531000,0,1
0.479958500,1,1
0.480461000,0,1
0.481266500,0,0
0.481696000,1,0
0.482184500,1,1
0.483007000,1,0
0.483493000,0,0
0.483950500,1,0
0.484398500,0,0
0.484900500,0,1
0.485469500,1,1
0.485929000,0,1
0.486434000,1,1
0.486904500,0,1
0.487408500,1,1
0.487855500,0,1
0.488361500,1,1
0.488837000,0,1
0.489387000,0,0
0.489903500,1,0
0.490364000,0,0
0.490797500,1,0
0.491266000,0,0
0.491732500,1,0
0.492184000,0,0
0.492631500,0,1
0.493136500,1,1
0.493588500,0,1
0.494012500,0,0
0.494518500,1,0
0.494951500,0,0
0.495461500,1,0
0.495913500,0,0
0.496384500,1,0
0.496817000,0,0
0.497268000,1,0
0.497733000,0,0
0.498195000,1,0
0.498668500,0,0
0.499136500,1,0
0.499646000,0,0
0.500155000,1,0
0.500664000,0,0
0.501185500,1,0
0.501612500,0,0
0.502142000,0,1
0.502602000,1,1
0.503142000,0,1
0.503588500,1,1
0.504030500,0,1
0.504489000,0,0
0.504949000,1,0
0.505400000,0,0
0.505835500,1,0
0.506340500,0,0
0.506766500,1,0
0.507269500,0,0
0.507694500,1,0
0.508142500,0,0
0.508571500,1,0
0.509021000,0,0
0.509495000,1,0
0.509940000,0,0
0.510407500,1,0
0.510835500,0,0
0.511364500,0,1
0.511855000,1,1
0.512402500,0,1
0.513397000,0,0
0.513887000,1,0
0.514393500,1,1
0.515229000,1,0
0.515695000,0,0
0.516143000,1,0
0.516611500,0,0
0.517137500,0,1
0.517706500,1,1
0.518198500,0,1
0.518769000,1,1
0.519288000,0,1
0.519856500,1,1
0.520427500,0,1
0.520924500,1,1
0.521412000,0,1
0.521832000,0,0
0.522338500,1,0
0.522762500,0,0
0.523267500,1,0
0.523692500,0,0
0.524143500,1,0
0.524564000,0,0
0.525007000,0,1
0.525494000,1,1
0.525936500,0,1
0.526394500,0,0
0.526840500,1,0
0.527340000,0,0
0.527774000,1,0
0.528261500,0,0
0.528692500,1,0
0.529143500,0,0
0.529572000,1,0
0.530138500,0,0
0.530643000,1,0
0.531144000,0,0
0.531666500,1,0
0.532143500,0,0
0.532668000,1,0
0.533269500,0,0
0.533796500,1,0
0.534292000,0,0
0.534772000,0,1
0.535270500,1,1
0.535707500,0,1
0.536144000,1,1
0.536586500,0,1
0.537016000,1,1
0.537495000,0,1
0.537940000,0,0
0.538479500,1,0
0.538972500,0,0
0.539460500,0,1
0.539917500,1,1
0.540362500,0,1
0.540791500,1,1
0.541273500,0,1
0.541706500,0,0
0.542144500,1,0
0.542560500,0,0
0.543009000,1,0
0.543470500,0,0
0.543945000,0,1
0.544466500,1,1
0.544966000,0,1
0.545475000,1,1
0.545940000,0,1
0.546782000,0,0
0.547269000,1,0
0.547843000,1,1
0.548987000,1,0
0.549547500,0,0
0.550000000,1,0
0.550586500,0,0
0.551048500,0,1
0.551581000,1,1
0.552059000,0,1
0.552553000,1,1
0.552999000,0,1
0.553490500,1,1
0.553925500,0,1
0.554389500,1,1
0.554872000,0,1
0.555385000,0,0
0.555842500,1,0
0.556366500,0,0
0.556823000,1,0
0.557290000,0,0
0.557764000,1,0
0.558305000,0,0
0.558954000,0,1
0.559521500,1,1
0.559965000,0,1
0.560486500,0,0
0.560987500,1,0
0.561543500,0,0
0.561998500,1,0
0.562517500,0,0
0.562943000,1,0
0.563408000,0,0
0.563870000,1,0
0.564376500,0,0
0.564846000,1,0
0.565342000,0,0
0.565795000,1,0
0.566265000,0,0
0.566717000,1,0
0.567146000,0,0
0.567598500,1,0
0.568022000,0,0
0.568544500,0,1
0.568994500,1,1
0.569498500,0,1
0.569946000,1,1
0.570422500,0,1
0.570874500,1,1
0.571369500,0,1
0.571816000,1,1
0.572268500,0,1
0.572741500,1,1
0.573199500,0,1
0.573621000,0,0
0.574067500,1,0
0.574535500,0,0
0.574967500,1,0
0.575467500,0,0
0.575930500,1,0
0.576377000,0,0
0.576836500,0,1
0.577287000,1,1
0.577729500,0,1
0.578194000,1,1
0.578734000,0,1
0.579788000,0,0
0.580289500,1,0
0.580742500,1,1
0.581641500,1,0
0.582141500,0,0
0.582569500,1,0
0.583025500,0,0
0.583483000,0,1
0.583923500,1,1
0.584405000,0,1
0.584855500,1,1
0.585369000,0,1
0.585799000,1,1
0.586288500,0,1
0.586726000,1,1
0.587241500,0,1
0.587684500,0,0
0.588180000,1,0
0.588639000,0,0
0.589142000,1,0
0.589652000,0,0
0.590296500,1,0
0.590901500,0,0
0.591548500,0,1
0.592354500,1,1
0.592891500,0,1
0.593397000,0,0
0.593873500,1,0
0.594410000,0,0
0.594839500,1,0
0.595291000,0,0
0.595754500,1,0
0.596243500,0,0
0.596681500,1,0
0.597142500,0,0
0.597577500,1,0
0.597995000,0,0
0.598510500,1,0
0.598935000,0,0
0.599428500,1,0
0.599874500,0,0
0.600343000,1,0
0.600779000,0,0
0.601271500,0,1
0.601720500,1,1
0.602192500,0,1
0.602636000,1,1
0.603064500,0,1
0.603565000,1,1
0.604004000,0,1
0.604495500,0,0
0.604935000,1,0
0.605386000,0,0
0.605846500,0,1
0.606410000,1,1
0.606913500,0,1
0.607417000,1,1
0.607908500,0,1
0.608389500,0,0
0.608846000,1,0
0.609295000,0,0
0.609823000,0,1
0.610388000,1,1
0.610886500,0,1
0.611388500,0,0
0.611855500,1,0
0.612414000,0,0
0.612963000,0,1
0.613544000,1,1
0.614001000,0,1
0.615143500,0,0
0.615682500,1,0
0.616213000,1,1
0.617144000,1,0
0.617583500,0,0
0.618029500,1,0
0.618491000,0,0
0.618922500,0,1
0.619368500,1,1
0.619801000,0,1
0.620268000,1,1
0.620710000,0,1
0.621264500,1,1
0.621707000,0,1
0.622189000,1,1
0.622712500,0,1
0.623202500,0,0
0.623646500,1,0
0.624144000,0,0
0.624558500,1,0
0.625001500,0,0
0.625487000,1,0
0.625912500,0,0
0.626347500,0,1
0.626784000,1,1
0.627443000,0,1
0.628021000,0,0
0.628537500,1,0
0.628969500,0,0
0.629492500,1,0
0.629921000,0,0
0.630389000,1,0
0.630824000,0,0
0.631292000,1,0
0.631726500,0,0
0.632199000,1,0
0.632649000,0,0
0.633072500,1,0
0.633571000,0,0
0.634071500,1,0
0.634571500,0,0
0.634993000,1,0
0.635482500,0,0
0.635903500,0,1
0.636399000,1,1
0.636899500,0,1
0.637427000,0,0
0.637877000,1,0
0.638422500,0,0
0.638928000,1,0
0.639420500,0,0
0.639980000,1,0
0.640513500,0,0
0.640979500,0,1
0.641506000,1,1
0.642145000,0,1
0.642680500,0,0
0.643204500,1,0
0.643687000,0,0
0.644151000,1,0
0.644655000,0,0
0.645145500,0,1
0.645686500,1,1
0.646185000,0,1
0.646665500,0,0
0.647150500,1,0
0.647659000,0,0
0.648145500,0,1
0.648601500,1,1
0.649340500,0,1
0.650415500,0,0
0.650910500,1,0
0.651393000,1,1
0.652270000,1,0
0.652748500,0,0
0.653330500,1,0
0.653778500,0,0
0.654245500,0,1
0.654764500,1,1
0.655286000,0,1
0.655816500,1,1
0.656317000,0,1
0.656827000,1,1
0.657281000,0,1
0.657745500,1,1
0.658201500,0,1
0.658619500,0,0
0.659064500,1,0
0.659545500,0,0
0.659994000,1,0
0.660469500,0,0
0.660908000,1,0
0.661370500,0,0
0.661804000,0,1
0.662282000,1,1
0.662742500,0,1
0.663190500,0,0
0.663650500,1,0
0.664070000,0,0
0.664536000,1,0
0.664983500,0,0
0.665464000,1,0
0.665899000,0,0
0.666372500,1,0
0.666816000,0,0
0.667294000,1,0
0.667810500,0,0
0.668315000,1,0
0.668801000,0,0
0.669286500,1,0
0.669727500,0,0
0.670206000,1,0
0.670625000,0,0
0.671050500,0,1
0.671495500,1,1
0.671953000,0,1
0.672409500,1,1
0.672979000,0,1
0.673556000,1,1
0.674044000,0,1
0.674526500,0,0
0.675002000,1,0
0.675497500,0,0
0.676000500,0,1
0.676576000,1,1
0.677351000,0,1
0.677964500,1,1
0.678520500,0,1
0.679049000,0,0
0.679503000,1,0
0.679969500,0,0
0.680440000,0,1
0.680875000,1,1
0.681381000,0,1
0.681797000,1,1
0.682268000,0,1
0.682692000,1,1
0.683285500,0,1
0.684153000,0,0
0.684593000,1,0
0.685060500,1,1
0.685969500,1,0
0.686497500,0,0
0.686993000,1,0
0.687523500,0,0
0.687959500,0,1
0.688555500,1,1
0.689148000,0,1
0.689590500,1,1
0.690023500,0,1
0.690506500,1,1
0.690931000,0,1
0.691382500,1,1
0.691820500,0,1
0.692277500,0,0
0.692734500,1,0
0.693212000,0,0
0.693670500,1,0
0.694148500,0,0
0.694588500,1,0
0.695019000,0,0
0.695494000,0,1
0.695959000,1,1
0.696410000,0,1
0.696852000,0,0
0.697349000,1,0
0.697798000,0,0
0.698272500,1,0
0.698722000,0,0
0.699154000,1,0
0.699600500,0,0
0.700033500,1,0
0.700504500,0,0
0.700948000,1,0
0.701420000,0,0
0.701856500,1,0
0.702351500,0,0
0.702792500,1,0
0.703281500,0,0
0.703850500,1,0
0.704362500,0,0
0.704862500,0,1
0.705420500,1,1
0.705903500,0,1
0.706378500,0,0
0.706821500,1,0
0.707400000,0,0
0.707897500,0,1
0.708437500,1,1
0.708952000,0,1
0.709532000,0,0
0.710006000,1,0
0.710529000,0,0
0.711047500,1,0
0.711519500,0,0
0.711973500,1,0
0.712474500,0,0
0.712910500,1,0
0.713392500,0,0
0.713836000,1,0
0.714302000,0,0
0.714755500,1,0
0.715280000,0,0
0.715768000,0,1
0.716285500,1,1
0.716736500,0,1
0.717622000,0,0
0.718056000,1,0
0.718532000,1,1
0.719376000,1,0
0.719834500,0,0
0.720281500,1,0
0.720716000,0,0
0.721155000,0,1
0.721602000,1,1
0.722038000,0,1
0.722518000,1,1
0.722954000,0,1
0.723427000,1,1
0.723878000,0,1
0.724350000,1,1
0.724794000,0,1
0.725271000,0,0
0.725699500,1,0
0.726150500,0,0
0.726603500,1,0
0.727051500,0,0
0.727500000,1,0
0.727943000,0,0
0.728414000,0,1
0.728870500,1,1
0.729339000,0,1
0.729785000,0,0
0.730284500,1,0
0.730729500,0,0
0.731194000,1,0
0.731644000,0,0
0.732156000,1,0
0.732655000,0,0
0.733156000,1,0
0.733610500,0,0
0.734050500,1,0
0.734513000,0,0
0.734967000,1,0
0.735507500,0,0
0.736046000,1,0
0.736531500,0,0
0.737151000,1,0
0.737706500,0,0
0.738262000,0,1
0.738783500,1,1
0.739283000,0,1
0.739724000,0,0
0.740213500,1,0
0.740692000,0,0
0.741156500,1,0
0.741675500,0,0
0.742228000,0,1
0.742779500,1,1
0.743298500,0,1
0.743735000,0,0
0.744208000,1,0
0.744632000,0,0
0.745151500,1,0
0.745603500,0,0
0.746056000,1,0
0.746505500,0,0
0.746962500,1,0
0.747474000,0,0
0.747985000,1,0
0.748520000,0,0
0.748960500,0,1
0.749425000,1,1
0.749864000,0,1
0.750755000,0,0
0.751280000,1,0
0.751700500,1,1
0.752496000,1,0
0.752938000,0,0
0.753401000,1,0
0.753831000,0,0
0.754290500,0,1
0.754726000,1,1
0.755210000,0,1
0.755648500,1,1
0.756152000,0,1
0.756581000,1,1
0.757034500,0,1
0.757520500,1,1
0.757949500,0,1
0.758428000,0,0
0.758879000,1,0
0.759412000,0,0
0.759850500,1,0
0.760291000,0,0
0.760726500,1,0
0.761214500,0,0
0.761645500,0,1
0.762078500,1,1
0.762556000,0,1
0.762975500,0,0
0.763483500,1,0
0.763906000,0,0
0.764405500,1,0
0.764835500,0,0
0.765286500,1,0
0.765782500,0,0
0.766306000,1,0
0.766850500,0,0
0.767321500,1,0
0.767813500,0,0
0.768355500,1,0
0.768899000,0,0
0.769438500,1,0
0.769989000,0,0
0.770541500,1,0
0.771153500,0,0
0.771684000,0,1
0.772307500,1,1
0.772725500,0,1
0.773198000,0,0
0.773648000,1,0
0.774074000,0,0
0.774559000,1,0
0.775001000,0,0
0.775494500,1,0
0.775929000,0,0
0.776409000,1,0
0.776863000,0,0
0.777427000,1,0
0.777880000,0,0
0.778415000,1,0
0.778857000,0,0
0.779353000,0,1
0.779810000,1,1
0.780280000,0,1
0.780823500,0,0
0.781322500,1,0
0.781941500,0,0
0.782472500,0,1
0.782994500,1,1
0.783514500,0,1
0.784377500,0,0
0.784820000,1,0
0.785295000,1,1
0.786154000,1,0
0.786571500,0,0
0.787022500,1,0
0.787509500,0,0
0.788004500,0,1
0.788558500,1,1
0.789081500,0,1
0.789585000,1,1
0.790009500,0,1
0.790506500,1,1
0.790934000,0,1
0.791397500,1,1
0.791828500,0,1
0.792284500,0,0
0.792715500,1,0
0.793159500,0,0
0.793571000,1,0
0.794014500,0,0
0.794482000,1,0
0.794918500,0,0
0.795426000,0,1
0.795908000,1,1
0.796423000,0,1
0.796904000,0,0
0.797422500,1,0
0.798026500,0,0
0.798577000,1,0
0.799154500,0,0
0.799632000,1,0
0.800154500,0,0
0.800765000,1,0
0.801452000,0,0
0.801988500,1,0
0.802507000,0,0
0.802939500,1,0
0.803414000,0,0
0.803837000,1,0
0.804297500,0,0
0.804750500,1,0
0.805208500,0,0
0.805631500,0,1
0.806057500,1,1
0.806638500,0,1
0.807176500,1,1
0.807662500,0,1
0.808210500,0,0
0.808729500,1,0
0.809182500,0,0
0.809729000,1,0
0.810289500,0,0
0.810775500,1,0
0.811304500,0,0
0.811733000,0,1
0.812255500,1,1
0.812685000,0,1
0.813155500,1,1
0.813613000,0,1
0.814047500,0,0
0.814511500,1,0
0.814942000,0,0
0.815400500,0,1
0.815828000,1,1
0.816282000,0,1
0.816711500,1,1
0.817161000,0,1
0.817960000,0,0
0.818416500,1,0
0.818912000,1,1
0.819751500,1,0
0.820265500,0,0
0.820706000,1,0
0.821161000,0,0
0.821600000,0,1
0.822036000,1,1
0.822506500,0,1
0.822953000,1,1
0.823429500,0,1
0.823876000,1,1
0.824347000,0,1
0.824785500,1,1
0.825290500,0,1
0.825707500,0,0
0.826207000,1,0
0.826631500,0,0
0.827156500,1,0
0.827584500,0,0
0.828031500,1,0
0.828510500,0,0
0.829026500,0,1
0.829526500,1,1
0.829996000,0,1
0.830487000,0,0
0.830966500,1,0
0.831589000,0,0
0.832067500,1,0
0.832584000,0,0
0.833007000,1,0
0.833513500,0,0
0.833923500,1,0
0.834468500,0,0
0.834922500,1,0
0.835422000,0,0
0.835854000,1,0
0.836314500,0,0
0.836758500,1,0
0.837254500,0,0
0.837690000,1,0
0.838157000,0,0
0.838591000,0,1
0.839036000,1,1
0.839639000,0,1
0.840157000,0,0
0.840637500,1,0
0.841074500,0,0
0.841566000,1,0
0.842008500,0,0
0.842509500,1,0
0.842963500,0,0
0.843429000,0,1
0.843906500,1,1
0.844385500,0,1
0.844831000,0,0
0.845295500,1,0
0.845757500,0,0
0.846255500,0,1
0.846712500,1,1
0.847286000,0,1
0.847794000,0,0
0.848305500,1,0
0.848747500,0,0
0.849290000,1,0
0.849744000,0,0
0.850252000,0,1
0.850722500,1,1
0.851299500,0,1
0.852158000,0,0
0.852639500,1,0
0.853066500,1,1
0.854051000,1,0
0.854574000,0,0
0.855008500,1,0
0.855531500,0,0
0.855980500,0,1
0.856501500,1,1
0.856935000,0,1
0.857401500,1,1
0.857863000,0,1
0.858366000,1,1
0.858860500,0,1
0.859289500,1,1
0.859806000,0,1
0.860292000,0,0
0.860929000,1,0
0.861420000,0,0
0.861912500,1,0
0.862412000,0,0
0.862943000,1,0
0.863504500,0,0
0.863939000,0,1
0.864443500,1,1
0.864998500,0,1
0.865531500,0,0
0.865953500,1,0
0.866527000,0,0
0.866946500,1,0
0.867408000,0,0
0.867830000,1,0
0.868297000,0,0
0.868793000,1,0
0.869285500,0,0
0.869731000,1,0
0.870164500,0,0
0.870610500,1,0
0.871030500,0,0
0.871562000,1,0
0.871981500,0,0
0.872436500,1,0
0.872894000,0,0
0.873428000,0,1
0.873954000,1,1
0.874427500,0,1
0.874889500,1,1
0.875369500,0,1
0.875829000,0,0
0.876283500,1,0
0.876722000,0,0
0.877164500,0,1
0.877627500,1,1
0.878056500,0,1
0.878512000,0,0
0.879011500,1,0
0.879518500,0,0
0.879971000,1,0
0.880439000,0,0
0.880892000,0,1
0.881388500,1,1
0.881838000,0,1
0.882284500,0,0
0.882747000,1,0
0.883215000,0,0
0.883641500,1,0
0.884078000,0,0
0.884557000,0,1
0.885008500,1,1
0.885483000,0,1
0.886359500,0,0
0.886814500,1,0
0.887284000,1,1
0.888160000,1,0
0.888586500,0,0
0.889040000,1,0
0.889518000,0,0
0.889954500,0,1
0.890438500,1,1
0.890983500,0,1
0.891499500,1,1
0.892047000,0,1
0.892514500,1,1
0.892971500,0,1
0.893414500,1,1
0.893841500,0,1
0.894299000,0,0
0.894810000,1,0
0.895303500,0,0
0.895815000,1,0
0.896509500,0,0
0.897057000,1,0
0.897563000,0,0
0.898032000,0,1
0.898541000,1,1
0.899041000,0,1
0.899640500,0,0
0.900222000,1,0
0.900705500,0,0
0.901211000,1,0
0.901637000,0,0
0.902085000,1,0
0.902564000,0,0
0.903029500,1,0
0.903515000,0,0
0.903958500,1,0
0.904430500,0,0
0.904878500,1,0
0.905386000,0,0
0.905817500,1,0
0.906311000,0,0
0.906733000,1,0
0.907218000,0,0
0.907633000,0,1
0.908161000,1,1
0.908587000,0,1
0.909021000,1,1
0.909511500,0,1
0.909943000,0,0
0.910428500,1,0
0.910912500,0,0
0.911472500,0,1
0.911969000,1,1
0.912548000,0,1
0.912985000,0,0
0.913508000,1,0
0.913932500,0,0
0.914420500,1,0
0.914852000,0,0
0.915300500,0,1
0.915735500,1,1
0.916219000,0,1
0.916669000,1,1
0.917161500,0,1
0.917609000,0,0
0.918052500,1,0
0.918545500,0,0
0.918982000,0,1
0.919509500,1,1
0.919961500,0,1
0.920867500,0,0
0.921368500,1,0
0.921792500,1,1
0.922713500,1,0
0.923218500,0,0
0.923766000,1,0
0.924270500,0,0
0.924755000,0,1
0.925281500,1,1
0.925810500,0,1
0.926313500,1,1
0.926821000,0,1
0.927293000,1,1
0.927713000,0,1
0.928168000,1,1
0.928599000,0,1
0.929036500,0,0
0.929504000,1,0
0.929939000,0,0
0.930407500,1,0
0.930859000,0,0
0.931360000,1,0
0.931766000,0,0
0.932270000,0,1
0.932783000,1,1
0.933285500,0,1
0.933718000,0,0
0.934206500,1,0
0.934656000,0,0
0.935162500,1,0
0.935663500,0,0
0.936168500,1,0
0.936674500,0,0
0.937163000,1,0
0.937614000,0,0
0.938047500,1,0
0.938532500,0,0
0.938965500,1,0
0.939453000,0,0
0.939886500,1,0
0.940371500,0,0
0.940802500,1,0
0.941294000,0,0
0.941762000,0,1
0.942304000,1,1
0.942816000,0,1
0.943325000,1,1
0.943787000,0,1
0.944289500,0,0
0.944740500,1,0
0.945216000,0,0
0.945646000,0,1
0.946074000,1,1
0.946562000,0,1
0.947016000,0,0
0.947523000,1,0
0.947961500,0,0
0.948430000,0,1
0.948888000,1,1
0.949364500,0,1
0.949843000,1,1
0.950390000,0,1
0.950907000,1,1
0.951408000,0,1
0.951843500,1,1
0.952296000,0,1
0.952721500,1,1
0.953659000,0,1
0.954674500,0,0
0.955164000,1,0
0.955641000,1,1
7.310515500,1,1

实验小结: 

我们常用的四线OLED就是IIC通信的,那么我们能不能用ch340来模拟一个IIC呢,当然可以我移植了中景园的OLED驱动,接下来就是见证奇迹的时刻,成功点亮,受限于CH340的引脚速度,模拟IIC的通信速度只有3k左右

注意:此方法只能驱动的i2c只能写入,不能读取(没有使用串口的输入线,如果读取需要串接一个限流电阻再接一根读取线)

当然可以通过模拟spi方式驱动oled,使用spi方式是cs直接接地。

参考链接

CH340 RTS DTR引脚编程驱动OLED - 电子DIY明明 - 博客园 (cnblogs.com)icon-default.png?t=N7T8https://www.cnblogs.com/dz-DIY-mingming/p/16476073.html

 CH340竟然能驱动OLED屏幕!!!_哔哩哔哩_bilibiliicon-default.png?t=N7T8https://www.bilibili.com/video/BV1ta411Q74C/?spm_id_from=333.999.0.0&vd_source=fcfea2ba9b42f90bbdd8a7709d1d8e1b

特此记录

anlog

2024年5月9日

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/613296.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

2024年数维杯B题完整代码和思路论文讲解与分析

2024数维杯数学建模完整代码和成品论文已更新&#xff0c;获取↓↓↓↓↓ https://www.yuque.com/u42168770/qv6z0d/bgic2nbxs2h41pvt?singleDoc# 2024数维杯数学建模B题45页论文和代码已完成&#xff0c;代码为全部问题的代码 论文包括摘要、问题重述、问题分析、模型假设、…

QT--2

Qt界面设计 #include "widget.h" #include "ui_widget.h"Widget::Widget(QWidget *parent): QWidget(parent) {//窗口相关设置this->resize(680,520);this->setFixedSize(680,520);this->setWindowTitle("Tim");this->setWindowFla…

【零基础】system generator①设置卡解析

1.在matlab中我们输入的是双精度浮点型数据&#xff0c;经过gateway后变成定点型。十六位十四个小数位&#xff0c;整个数据有十六位&#xff0c;其中十四位给了小数 2.fixed-point定点型&#xff1b;signed有符号&#xff1b;2’s comp补码 3.量化误差 truncate&#xff0c;舍…

Windows Server 2012 R2 新增D盘分区

我们经常搭建windows版本的游戏时会要在D盘上操作&#xff0c;今天就介绍下新的服务器如何新增一个D盘。 在"开始"图标右边有个”服务器管理器“&#xff0c;单击点开 点开服务器管理器后&#xff0c;点击“工具”打开“计算机管理” 打开计算机管理后点击“存储”-…

【c++】string深度刨析以及实现

#pragma once #include<iostream> using namespace std; #include<assert.h> namespace bite {class string{public://迭代器 //像指针 底层不一定是指针 typedef char* iterator;iterator begin(){return _str;}iterator end(){return _str _size;}//const 版本…

RERCS系统-WDA+BOPF框架实战例子 PART 2-新建Root的子节点Node Element

1、通过事务码 BOBF进入Business Object Browser&#xff08;业务对象浏览&#xff09;页面&#xff1b; 2、输入debug 进入编辑模式&#xff1b; 3、双击对应的业务对象进入Business Object Detail Browser即业务对象数据浏览器 在Node Structure的Root中新建需要的SubNode子…

OpenCV使用 Kinect 和其他兼容 OpenNI 的深度传感器(75)

返回:OpenCV系列文章目录&#xff08;持续更新中......&#xff09; 上一篇:使用 OpenCV 创建视频(74) 下一篇 :OpenCV使用 Orbbec Astra 3D 相机(76) 目的&#xff1a;​ 通过 VideoCapture 类支持与 OpenNI 兼容的深度传感器&#xff08;Kinect、XtionPRO 等&#xff09;。…

力扣HOT100 - 215. 数组中第K个最大元素

解题思路&#xff1a; 快速选择&#xff0c;目标是找出数组中第 k 小&#xff08;或第 k 大&#xff09;的元素&#xff0c;而不是对整个数组进行排序。 &#xff08;需要和快排进行区分&#xff0c;快排的目的是排序&#xff09; 注意&#xff1a; i l - 1, j r 1; 为什…

leetcode刷题指南

本文我将分享给大家一套我自己使用良久并觉得非常高效的 学习论&#xff0c;它可以运用到 Leetcode 上的刷题&#xff0c;也可以 generalize 到生活中涉及到学习以及记忆的方方面面。当然&#xff0c;本文将以 Leetcode 刷题为 case study 去进行讲解。 更具体一点, 我会教大家…

鸿蒙OpenHarmony开发板解析:【系统能力配置规则】

如何按需配置部件的系统能力 SysCap&#xff08;SystemCapability&#xff0c;系统能力&#xff09;是部件向开发者提供的接口的集合。 开发前请熟悉鸿蒙开发指导文档&#xff1a;gitee.com/li-shizhen-skin/harmony-os/blob/master/README.md点击或者复制转到。 部件配置系统…

Received Signals.SIGHUP death signal, shutting down workers

单机多卡训练大模型的时候&#xff0c;突然报错&#xff1a; 3%|▎ | 146/4992 [2:08:21<72:57:12, 54.20s/it][2024-05-10 13:27:11,479] torch.distributed.elastic.agent.server.api: [WARNING] Received Signals.SIGHUP death signal, shutting down workers [2…

Java转Kotlin调用JNI方法异常

一、背景 Java调用JNI方法时没有任何问题&#xff0c;但是使用Java转Kotlin以后出现了崩溃异常&#xff1a;A java_vm_ext.cc:597] JNI DETECTED ERROR IN APPLICATION: jclass has wrong type: 校验参数后没有任何变化&#xff0c;经过分析验证找到解决方案 二、原因…

Java入门基础学习笔记16——运算符

package cn.ensource.operator;public class OperatorDemo1 {public static void main(String[] args) {// 目标&#xff1a;掌握基本的算术运算符的使用int a 10;int b 2;System.out.println(a b);System.out.println(a - b);System.out.println(a * b); // 20System.out.…

4步快速配置Java、MySQL、Maven环境(windows)

每次入职一家新公司或者用一台其他的临时电脑或者新电脑时都要重新配置Java开发环境&#xff0c;很麻烦&#xff0c;因此我在这里记录一下快速配置环境的方式&#xff0c;四步搞定&#xff01;此处以win为操作系统进行讲解。 第一步&#xff1a;下载链接 下载链接&#xff1a…

【半夜学习MySQL】数据库中的数据类型(含数值类型、文本二进制类型、时间类型、String类型详谈)

&#x1f3e0;关于专栏&#xff1a;半夜学习MySQL专栏用于记录MySQL数据相关内容。 &#x1f3af;每天努力一点点&#xff0c;技术变化看得见 文章目录 数据类型分类数值类型bit类型tinyint类型int类型float类型decimal类型 文本、二进制类型char类型varchar类型 时间类型Strin…

51单片机入门:串口通信

串行通信的初步认识 通信方式分类 1、按照数据传送方式&#xff1a; 并行通信&#xff1a;通信时数据的各个位同时传送&#xff0c;可以实现字节为单位的通信。 但是通信线多&#xff0c;占用资源多&#xff0c;成本高。 串行通信&#xff1a;一次只能发送一位&#xff0c…

机器学习-Numpy

机器学习-Numpy 如果一个人拒绝提高自己的思想觉悟&#xff0c;那么他只能处在弱小、可怜、凄惨的境地。 目录 机器学习-Numpy 1.Numpy&#xff1a;生成矩阵 做矩阵运算 1&#xff09;创建矩阵 ①使用列表创建 ②使用元组创建 2&#xff09;矩阵取值 3&#xff09;numpy…

【栈】Leetcode 字符串解码

题目讲解 394. 字符串解码 算法讲解 这道题有四种情况&#xff1a;1.遍历的时候遇到数字&#xff0c;我们计算并保存数字&#xff0c;将它加入到数字栈中&#xff1b;2.遍历的时候遇到[&#xff0c;我们就把字符保存&#xff0c;加入到字符栈中&#xff1b;3.当遇到]&#x…

全栈开发之路——前端篇(9)插槽、常用api和全局api

全栈开发一条龙——前端篇 第一篇&#xff1a;框架确定、ide设置与项目创建 第二篇&#xff1a;介绍项目文件意义、组件结构与导入以及setup的引入。 第三篇&#xff1a;setup语法&#xff0c;设置响应式数据。 第四篇&#xff1a;数据绑定、计算属性和watch监视 第五篇 : 组件…

【2024亚马逊云科技峰会】Amazon Bedrock + Llama3 生成式AI实践

在 4 月 18 日&#xff0c;Meta在官网上公布了旗下最新大模型Llama 3。目前&#xff0c;Llama 3已经开放了80亿&#xff08;8B&#xff09;和700亿&#xff08;70B&#xff09;两个小参数版本&#xff0c;上下文窗口为8k&#xff0c;据称&#xff0c;通过使用更高质量的训练数据…