module ZephRay;

今朝有鱼今朝摸

Category

  • 摄影
  • 玩机
  • 硬件坑
  • 翻译
  • 软件坑
  • 随记

Tags

  • LCD
  • 点屏
  • 单片机
  • 计算器
  • 事
  • FPGA
  • STM32
  • 摄影
  • 古董
  • 测评
  • Verilog
  • 笔记本
  • 改造
  • 树莓派
  • 移植
  • Linux
  • ARM
  • nspire
  • 教程
  • 小动物
  • 景
  • 项目
  • GameBoy
  • LED
  • EPD
  • IBM
  • ThinkPad
  • 3DS
  • HP
  • 晒机
  • SDL
  • 82ES
  • Kindle
  • Minecraft
  • Assembly
  • 花
  • 仙剑奇侠传
  • 手办
  • Chiptune
  • 贴图
  • EL
  • 演讲
  • NDSL
  • Nikon

Recent replies

  • 朱寅翚 发表于「Kindle Paperwhite 2 强行救砖(1)」
  • 朱寅翚 发表于「Kindle Paperwhite 2 强行救砖(1)」
  • jcyfkimi 发表于「日常点屏[27]: LAEL320.256-6C」
  • hzy 发表于「IBM ThinkPad 560E (Type 2640) 简单展示」
  • 城市猎人 发表于「IBM ThinkPad 560E (Type 2640) 简单展示」
  • imbushuo 发表于「About Me」
  • 070 发表于「古董电脑选型」
  • Thermit 发表于「About Me」
  • 盛崖鱼 发表于「About Me」
  • Wenting Zhang 发表于「About Me」

My

RSS (中文优先)
RSS (English preferred)

坑 / Projects
关于我 / About
简历 / CV
破烂采购计划 / Craplist
古董电脑选型
SM83(GB CPU)指令编码
Linux PI 1M位跑分
Coremark跑分
音质参考

淘宝杂货铺
Bilibili空间
GitHub

Links

cnVintage古董电子论坛
cnCalc计算器论坛

Keshuai Xu
>Lithia's Core
ntzyz's space
丘丘塔台
tonoko.moe
kasora's blog
447f.Misaka
paizhang.info
spinmry实验室
电子考古学
Hikari Calyx Tech.
春上冰月的博客
业余无线电台 BD4SUR
FindHao
Test2g
Shell Bin
LEAFER x LAB

#LetsDriveLCD [3] – ST7565 12864

2012 年 1 月 8 日分类:硬件坑#LCD#点屏#单片机
Hint: this post is also available in Chinese.

COG12864

Another screen from LCDMK (a seller). This time I tried FRC grayscale, though it would be too flickery to be practical.

#LetsDriveLCD [2] – COG 10265

2012 年 1 月 2 日分类:硬件坑#LCD#点屏#单片机
Hint: this post is also available in Chinese.

10265

First day of 2012, and my second LCD. SPI interface and connected to a MCS-51 microcontroller.

#LetsDriveLCD [1] - ST7920

2011 年 7 月 28 日分类:硬件坑#LCD#点屏#单片机#事
Hint: this post is also available in Chinese.
![Hello](https://www.zephray.me/api/media/1508811248772-FIL396.jpg) "你好,世界!" means "Hello, world!" July 27th, 2011, I soldered my first MCS-51 system board, and used it to drive the first LCD I bought, an ST7920 12864. My journey of "Electrical Magic" started.

ThinkPad APS数据调用

2009 年 8 月 12 日分类:软件坑#IBM#笔记本#ThinkPad

Before you read

本文大概是我写的第一篇博文吧,09年,那年我应该是小学五年级。文本有经过改动,代码没有修改。

前言

有这么一篇文章:《利用thinkpad aps重力感应系统玩游戏!!!》,不知道用小黑的朋友有没有看过,www.douban.com/note/39019617/ 通过调用APS来玩游戏。

APS是ThinkPad内置的一套硬盘保护系统,原理是利用加速度传感器来检测冲击,并在冲击发生时暂停硬盘操作以保护硬盘。本文讨论的是如何自己编程来读取APS的数据。

数据调用

在类型定义里加入:

  ACCElREPORT = record
    PresentState:integer;
    LatestRawAccelDataX:word;
    LatestRawAccelDataY:word;
    LatestAccelDataX:word;
    LatestAccelDataY:word;
    Temperature:char;
    LatestZeroG_X:word;
    LatestZeroG_Y:word;
  end;
  PACCELREPORT=ACCELREPORT;

  HDAPS_API = Integer;

  ReadHDAPS = function(pAcceleration:PACCELREPORT):HDAPS_API;stdcall;

变量定义:

  HDAPS: ReadHDAPS;
  hDLL: THandle;
  HDAPSData: ACCElREPORT;
  OffsetX: Integer;
  OffsetY: Integer;
  LoadOK: Boolean;

DLL加载:

try
    {Get DLL}
    hDLL := LoadLibrary('Sensor.dll');
    if hDLL <> 0 then
      HDAPS := GetProcAddress(hDLL,'ShockproofGetAccelerometerData');
  except
    on ex:Exception do
    begin
      ShowMessage('Error:'+ex.Message);
      Close;
    end;
  end;
    if (HDAPS(@HDAPSData)=1) then
        LoadOK := True;
    DoubleBuffered := True;

#演示应用

我写了个鼠标控制器,可以用来玩仓鼠球。图: amc

欢迎!Welcome!

1970 年 1 月 2 日分类:随记#事

这里是ZephRay的个人网站,主要内容为电子和古董计算机、计算器相关,使用了Xplosiss作为内容管理(以前是Dokuwiki)。

This is website of ZephRay, mainly about electronics and vintage computing. Limited by the time I have, I currently do not have everything in English. You may use Google Translate or send me an Email about the question you may have.

  • «
  • 1
  • …
  • 28
  • 29
  • 30
  • 31
  • 32
  • »
Copyright © 2009-2019 Wenting Zhang. All rights reserved.
Unless otherwise noted, content on this blog is licensed under CC BY-SA 4.0.