亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? osram128x64x4.c

?? FreeRTOS is a portable, open source, mini Real Time Kernel - a free to download and royalty free RTO
?? C
?? 第 1 頁 / 共 3 頁
字號:
//*****************************************************************************
//
// osram128x64x4.c - Driver for the OSRAM 128x64x4 graphical OLED display.
//
// Copyright (c) 2006-2007 Luminary Micro, Inc.  All rights reserved.
// 
// Software License Agreement
// 
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's microcontroller products.
// 
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws.  All rights are reserved.  Any use in violation
// of the foregoing restrictions may subject the user to criminal sanctions
// under applicable laws, as well as to civil liability for the breach of the
// terms and conditions of this license.
// 
// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
// 
// This is part of revision 1408 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************

//*****************************************************************************
//
//! \addtogroup ek_lm3sx965_api
//! @{
//
//*****************************************************************************

#include "hw_ssi.h"
#include "hw_memmap.h"
#include "hw_sysctl.h"
#include "hw_types.h"
#include "debug.h"
#include "gpio.h"
#include "ssi.h"
#include "sysctl.h"
#include "osram128x64x4.h"

//*****************************************************************************
//
// Flag to indicate if SSI port is enabled for OSRAM usage.
//
//*****************************************************************************
static volatile tBoolean g_bSSIEnabled = false;

//*****************************************************************************
//
// Define the OSRAM 128x64x4 Remap Setting(s).  This will be used in
// several places in the code to switch between vertical and horizontal
// address incrementing.
//
// The Remap Command (0xA0) takes one 8-bit parameter.  The parameter is
// defined as follows.
//
// Bit 7: Reserved
// Bit 6: Disable(0)/Enable(1) COM Split Odd Even
//        When enabled, the COM signals are split Odd on one side, even on
//        the other.  Otherwise, they are split 0-39 on one side, 40-79 on
//        the other.
// Bit 5: Reserved
// Bit 4: Disable(0)/Enable(1) COM Remap
//        When Enabled, ROW 0-79 map to COM 79-0 (i.e. reverse row order)
// Bit 3: Reserved
// Bit 2: Horizontal(0)/Vertical(1) Address Increment
//        When set, data RAM address will increment along the column rather
//        than along the row.
// Bit 1: Disable(0)/Enable(1) Nibble Remap
//        When enabled, the upper and lower nibbles in the DATA bus for access
//        to the data RAM are swapped.
// Bit 0: Disable(0)/Enable(1) Column Address Remap
//        When enabled, DATA RAM columns 0-63 are remapped to Segment Columns
//        127-0.
//
//*****************************************************************************
#define OSRAM_INIT_REMAP    0x52
#define OSRAM_INIT_OFFSET   0x4C
static const unsigned char g_pucOSRAM128x64x4VerticalInc[]   = { 0xA0, 0x56 };
static const unsigned char g_pucOSRAM128x64x4HorizontalInc[] = { 0xA0, 0x52 };

//*****************************************************************************
//
// A 5x7 font (in a 6x8 cell, where the sixth column is omitted from this
// table) for displaying text on the OLED display.  The data is organized as
// bytes from the left column to the right column, with each byte containing
// the top row in the LSB and the bottom row in the MSB.
//
// Note:  This is the same font data that is used in the EK-LM3S811
// osram96x16x1 driver.  The single bit-per-pixel is expaned in the StringDraw
// function to the appropriate four bit-per-pixel gray scale format.
//
//*****************************************************************************
static const unsigned char g_pucFont[96][5] =
{
    { 0x00, 0x00, 0x00, 0x00, 0x00 }, // " "
    { 0x00, 0x00, 0x4f, 0x00, 0x00 }, // !
    { 0x00, 0x07, 0x00, 0x07, 0x00 }, // "
    { 0x14, 0x7f, 0x14, 0x7f, 0x14 }, // #
    { 0x24, 0x2a, 0x7f, 0x2a, 0x12 }, // $
    { 0x23, 0x13, 0x08, 0x64, 0x62 }, // %
    { 0x36, 0x49, 0x55, 0x22, 0x50 }, // &
    { 0x00, 0x05, 0x03, 0x00, 0x00 }, // '
    { 0x00, 0x1c, 0x22, 0x41, 0x00 }, // (
    { 0x00, 0x41, 0x22, 0x1c, 0x00 }, // )
    { 0x14, 0x08, 0x3e, 0x08, 0x14 }, // *
    { 0x08, 0x08, 0x3e, 0x08, 0x08 }, // +
    { 0x00, 0x50, 0x30, 0x00, 0x00 }, // ,
    { 0x08, 0x08, 0x08, 0x08, 0x08 }, // -
    { 0x00, 0x60, 0x60, 0x00, 0x00 }, // .
    { 0x20, 0x10, 0x08, 0x04, 0x02 }, // /
    { 0x3e, 0x51, 0x49, 0x45, 0x3e }, // 0
    { 0x00, 0x42, 0x7f, 0x40, 0x00 }, // 1
    { 0x42, 0x61, 0x51, 0x49, 0x46 }, // 2
    { 0x21, 0x41, 0x45, 0x4b, 0x31 }, // 3
    { 0x18, 0x14, 0x12, 0x7f, 0x10 }, // 4
    { 0x27, 0x45, 0x45, 0x45, 0x39 }, // 5
    { 0x3c, 0x4a, 0x49, 0x49, 0x30 }, // 6
    { 0x01, 0x71, 0x09, 0x05, 0x03 }, // 7
    { 0x36, 0x49, 0x49, 0x49, 0x36 }, // 8
    { 0x06, 0x49, 0x49, 0x29, 0x1e }, // 9
    { 0x00, 0x36, 0x36, 0x00, 0x00 }, // :
    { 0x00, 0x56, 0x36, 0x00, 0x00 }, // ;
    { 0x08, 0x14, 0x22, 0x41, 0x00 }, // <
    { 0x14, 0x14, 0x14, 0x14, 0x14 }, // =
    { 0x00, 0x41, 0x22, 0x14, 0x08 }, // >
    { 0x02, 0x01, 0x51, 0x09, 0x06 }, // ?
    { 0x32, 0x49, 0x79, 0x41, 0x3e }, // @
    { 0x7e, 0x11, 0x11, 0x11, 0x7e }, // A
    { 0x7f, 0x49, 0x49, 0x49, 0x36 }, // B
    { 0x3e, 0x41, 0x41, 0x41, 0x22 }, // C
    { 0x7f, 0x41, 0x41, 0x22, 0x1c }, // D
    { 0x7f, 0x49, 0x49, 0x49, 0x41 }, // E
    { 0x7f, 0x09, 0x09, 0x09, 0x01 }, // F
    { 0x3e, 0x41, 0x49, 0x49, 0x7a }, // G
    { 0x7f, 0x08, 0x08, 0x08, 0x7f }, // H
    { 0x00, 0x41, 0x7f, 0x41, 0x00 }, // I
    { 0x20, 0x40, 0x41, 0x3f, 0x01 }, // J
    { 0x7f, 0x08, 0x14, 0x22, 0x41 }, // K
    { 0x7f, 0x40, 0x40, 0x40, 0x40 }, // L
    { 0x7f, 0x02, 0x0c, 0x02, 0x7f }, // M
    { 0x7f, 0x04, 0x08, 0x10, 0x7f }, // N
    { 0x3e, 0x41, 0x41, 0x41, 0x3e }, // O
    { 0x7f, 0x09, 0x09, 0x09, 0x06 }, // P
    { 0x3e, 0x41, 0x51, 0x21, 0x5e }, // Q
    { 0x7f, 0x09, 0x19, 0x29, 0x46 }, // R
    { 0x46, 0x49, 0x49, 0x49, 0x31 }, // S
    { 0x01, 0x01, 0x7f, 0x01, 0x01 }, // T
    { 0x3f, 0x40, 0x40, 0x40, 0x3f }, // U
    { 0x1f, 0x20, 0x40, 0x20, 0x1f }, // V
    { 0x3f, 0x40, 0x38, 0x40, 0x3f }, // W
    { 0x63, 0x14, 0x08, 0x14, 0x63 }, // X
    { 0x07, 0x08, 0x70, 0x08, 0x07 }, // Y
    { 0x61, 0x51, 0x49, 0x45, 0x43 }, // Z
    { 0x00, 0x7f, 0x41, 0x41, 0x00 }, // [
    { 0x02, 0x04, 0x08, 0x10, 0x20 }, // "\"
    { 0x00, 0x41, 0x41, 0x7f, 0x00 }, // ]
    { 0x04, 0x02, 0x01, 0x02, 0x04 }, // ^
    { 0x40, 0x40, 0x40, 0x40, 0x40 }, // _
    { 0x00, 0x01, 0x02, 0x04, 0x00 }, // `
    { 0x20, 0x54, 0x54, 0x54, 0x78 }, // a
    { 0x7f, 0x48, 0x44, 0x44, 0x38 }, // b
    { 0x38, 0x44, 0x44, 0x44, 0x20 }, // c
    { 0x38, 0x44, 0x44, 0x48, 0x7f }, // d
    { 0x38, 0x54, 0x54, 0x54, 0x18 }, // e
    { 0x08, 0x7e, 0x09, 0x01, 0x02 }, // f
    { 0x0c, 0x52, 0x52, 0x52, 0x3e }, // g
    { 0x7f, 0x08, 0x04, 0x04, 0x78 }, // h
    { 0x00, 0x44, 0x7d, 0x40, 0x00 }, // i
    { 0x20, 0x40, 0x44, 0x3d, 0x00 }, // j
    { 0x7f, 0x10, 0x28, 0x44, 0x00 }, // k
    { 0x00, 0x41, 0x7f, 0x40, 0x00 }, // l
    { 0x7c, 0x04, 0x18, 0x04, 0x78 }, // m
    { 0x7c, 0x08, 0x04, 0x04, 0x78 }, // n
    { 0x38, 0x44, 0x44, 0x44, 0x38 }, // o
    { 0x7c, 0x14, 0x14, 0x14, 0x08 }, // p
    { 0x08, 0x14, 0x14, 0x18, 0x7c }, // q
    { 0x7c, 0x08, 0x04, 0x04, 0x08 }, // r
    { 0x48, 0x54, 0x54, 0x54, 0x20 }, // s
    { 0x04, 0x3f, 0x44, 0x40, 0x20 }, // t
    { 0x3c, 0x40, 0x40, 0x20, 0x7c }, // u
    { 0x1c, 0x20, 0x40, 0x20, 0x1c }, // v
    { 0x3c, 0x40, 0x30, 0x40, 0x3c }, // w
    { 0x44, 0x28, 0x10, 0x28, 0x44 }, // x
    { 0x0c, 0x50, 0x50, 0x50, 0x3c }, // y
    { 0x44, 0x64, 0x54, 0x4c, 0x44 }, // z
    { 0x00, 0x08, 0x36, 0x41, 0x00 }, // {
    { 0x00, 0x00, 0x7f, 0x00, 0x00 }, // |
    { 0x00, 0x41, 0x36, 0x08, 0x00 }, // }
    { 0x02, 0x01, 0x02, 0x04, 0x02 }, // ~
    { 0x02, 0x01, 0x02, 0x04, 0x02 }, // ~
};

//*****************************************************************************
//
// The sequence of commands used to initialize the SSD0303 controller.  Each
// command is described as follows:  there is a byte specifying the number of
// bytes in the command sequence, followed by that many bytes of command data.
// Note:  This initialization sequence is derived from OSRAM App Note AN018.
//
//*****************************************************************************
static const unsigned char g_pucOSRAM128x64x4Init[] =
{
    //
    // Column Address
    //
    4, 0x15, 0, 63, 0xe3,

    //
    // Row Address
    //
    4, 0x75, 0, 63, 0xe3,

    //
    // Contrast Control
    //
    3, 0x81, 50, 0xe3,

    //
    // Half Current Range
    //
    2, 0x85, 0xe3,

    //
    // Display Re-map
    //
    3, 0xA0, OSRAM_INIT_REMAP, 0xe3,

    //
    // Display Start Line
    //
    3, 0xA1, 0, 0xe3,

    //
    // Display Offset
    //
    3, 0xA2, OSRAM_INIT_OFFSET, 0xe3,

    //
    // Display Mode Normal
    //
    2, 0xA4, 0xe3,

    //
    // Multiplex Ratio
    //
    3, 0xA8, 63, 0xe3,

    //
    // Phase Length
    //
    3, 0xB1, 0x22, 0xe3,

    //
    // Row Period
    //
    3, 0xB2, 70, 0xe3,

    //
    // Display Clock Divide
    //
    3, 0xB3, 0xF1, 0xe3,

    //
    // VSL
    //
    3, 0xBF, 0x0D, 0xe3,

    //
    // VCOMH
    //
    3, 0xBE, 0x02, 0xe3,

    //
    // VP
    //
    3, 0xBC, 0x10, 0xe3,

    //
    // Gamma
    //
    10, 0xB8, 0x01, 0x11, 0x22, 0x32, 0x43, 0x54, 0x65, 0x76, 0xe3,

    //
    // Set DC-DC
    3, 0xAD, 0x03, 0xe3,

    //
    // Display ON/OFF
    //
    2, 0xAF, 0xe3,
};

//*****************************************************************************
//
//! \internal
//!
//! Write a sequence of command bytes to the SSD0323 controller.
//!
//! The data is written in a polled fashion; this function will not return
//! until the entire byte sequence has been written to the controller.
//!
//! \return None.
//
//*****************************************************************************
static void
OSRAMWriteCommand(const unsigned char *pucBuffer, unsigned long ulCount)
{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品aaa| 一本色道**综合亚洲精品蜜桃冫| 丁香六月久久综合狠狠色| 91丨九色porny丨蝌蚪| 日韩精品一区二区三区swag| 亚洲bt欧美bt精品| 91热门视频在线观看| 日韩三级视频在线观看| 亚洲国产精品一区二区www | 狠狠色丁香婷婷综合久久片| 色婷婷综合久久久| 亚洲欧美日韩精品久久久久| av中文字幕不卡| 成人性生交大片免费看视频在线| 欧美美女直播网站| 成人免费高清视频| 国产无人区一区二区三区| 中文字幕一区二区三区不卡在线 | 久久久久久夜精品精品免费| 亚洲成av人综合在线观看| 97精品视频在线观看自产线路二| 久久影院视频免费| 六月丁香综合在线视频| 一区二区三区自拍| 91丨porny丨最新| 亚洲另类中文字| 欧美吻胸吃奶大尺度电影 | 国产成a人无v码亚洲福利| 日韩一区二区三区免费观看| 中文字幕在线不卡国产视频| 成人免费视频免费观看| 一区二区三区色| 日本一区中文字幕| 久久久av毛片精品| 老司机精品视频一区二区三区| 欧美日韩国产天堂| 婷婷开心激情综合| 欧美日韩成人综合天天影院 | 91麻豆免费在线观看| 中文一区二区在线观看| 国产精品自拍一区| 久久精品一级爱片| 国产成人欧美日韩在线电影| 久久久精品蜜桃| 国产成人在线视频免费播放| 国产亚洲精品精华液| 国产丶欧美丶日本不卡视频| 欧美极品aⅴ影院| 成熟亚洲日本毛茸茸凸凹| 欧美极品少妇xxxxⅹ高跟鞋 | www.日韩大片| 亚洲少妇30p| 欧美伊人久久大香线蕉综合69| 亚洲影视资源网| 欧美区一区二区三区| 日韩国产欧美一区二区三区| 欧美一区二区福利视频| 久久精品国产99国产精品| 2024国产精品| 成人一级片在线观看| 国产精品电影一区二区三区| 色激情天天射综合网| 午夜欧美视频在线观看| 欧美精品在线观看播放| 美女脱光内衣内裤视频久久网站| 精品国产一区二区三区忘忧草| 国产精品一级片| 国产精品久久久久久福利一牛影视| 91日韩一区二区三区| 午夜精品成人在线| wwwwxxxxx欧美| 成人av第一页| 亚洲一二三级电影| 亚洲主播在线播放| 亚洲精品自拍动漫在线| 国产亚洲自拍一区| 欧美xxxxxxxx| 欧美大黄免费观看| 国产亲近乱来精品视频| 制服丝袜激情欧洲亚洲| 在线精品视频小说1| 不卡av电影在线播放| 国产激情一区二区三区| 国产一区二区不卡老阿姨| 风间由美一区二区三区在线观看 | 北岛玲一区二区三区四区 | 精品国产一区二区三区不卡| 欧美午夜理伦三级在线观看| 蜜桃久久av一区| 男女性色大片免费观看一区二区 | 中文字幕精品一区二区精品绿巨人| 91在线云播放| 日本午夜精品一区二区三区电影| 久久久精品国产免大香伊| 99re热视频精品| 日韩中文字幕1| 国产精品丝袜91| 欧美二区三区91| 成人丝袜18视频在线观看| 国产黑丝在线一区二区三区| 丁香婷婷综合五月| 在线观看国产精品网站| 欧美一级欧美三级在线观看| 日韩一区二区三区高清免费看看| 国产欧美一区二区在线观看| 欧美一区二区三区视频在线| 51精品秘密在线观看| 久久婷婷久久一区二区三区| 亚洲人成伊人成综合网小说| 三级久久三级久久久| 欧美性猛片xxxx免费看久爱| 一区二区三区在线视频播放| 色综合久久88色综合天天免费| 亚洲精品乱码久久久久| 精品成人在线观看| 国产精品久久久久永久免费观看 | 图片区小说区区亚洲影院| 欧美美女bb生活片| 日韩福利视频网| 欧美成人午夜电影| 国产一区二区三区av电影| 久久精品日产第一区二区三区高清版| 国产真实精品久久二三区| 国产三级精品三级在线专区| 福利电影一区二区| 亚洲一区自拍偷拍| 日韩三级免费观看| 高清beeg欧美| 亚洲影院理伦片| 成人一级黄色片| 欧美精品一区二区三区四区 | 欧美日韩免费一区二区三区视频| 亚洲激情五月婷婷| 欧美日韩一区二区不卡| av电影天堂一区二区在线| 毛片一区二区三区| 亚洲综合激情网| 国产精品全国免费观看高清| 日韩精品一区二区三区swag| 欧美精品第1页| 欧美综合一区二区| 91网站最新网址| heyzo一本久久综合| 国产成人精品在线看| 麻豆国产欧美一区二区三区| 日日摸夜夜添夜夜添精品视频| 亚洲乱码中文字幕综合| 国产精品伦理一区二区| 久久久久久夜精品精品免费| 精品久久久久99| 久久综合网色—综合色88| 日韩免费观看高清完整版在线观看| 欧美肥胖老妇做爰| 欧美日韩高清一区二区三区| 欧美视频一区二区在线观看| 91国产福利在线| 91久久奴性调教| 欧美在线视频你懂得| 在线观看网站黄不卡| 在线观看精品一区| 欧美日韩国产综合视频在线观看| 欧美色成人综合| 欧美丰满高潮xxxx喷水动漫| 制服丝袜中文字幕亚洲| 日韩精品一区在线观看| www久久精品| 欧美国产成人精品| 中文字幕一区二区三区乱码在线| 综合久久综合久久| 伊人开心综合网| 午夜精品久久久久久久| 日本午夜精品一区二区三区电影| 美女爽到高潮91| 国产精品一卡二卡在线观看| 豆国产96在线|亚洲| 99精品在线免费| 欧美性感一类影片在线播放| 欧美日韩激情一区二区| 日韩精品中文字幕一区 | 欧美伊人久久久久久久久影院 | 国产色综合一区| 92精品国产成人观看免费| 人禽交欧美网站| 国产精品丝袜一区| 欧美一级片免费看| 成人av网站在线观看| 欧美a一区二区| 日本人妖一区二区| 亚洲h在线观看| 舔着乳尖日韩一区| 激情综合网激情| 成人免费看黄yyy456| 91丨国产丨九色丨pron| 欧美精品在欧美一区二区少妇| 精品国产一区二区三区不卡 | av一区二区三区四区| 色狠狠色狠狠综合| 欧美一区二区三区成人| 久久精品视频在线看| 亚洲少妇30p|