Skip to content

Instantly share code, notes, and snippets.

@blanboom
blanboom / stc_adc_polling_mocd.c
Last active December 25, 2015 16:39
STC15 ADC 查询模式
// From STC Datasheet
//suppose the frequency of test chip is 18.432MHz
#include "reg51.h"
#include "intrins.h"
#define FOSC 18432000L
#define BAUD 9600
typedef unsigned char BYTE;
@blanboom
blanboom / PygLatin.py
Created September 13, 2013 11:23
PygLatin:CodeCademy 上的一个 Python 作业
# PygLatin Convertor
# by Blanboom
# 2013-9-13 Programmer's Day
# http://www.codecademy.com/zh/tracks/python
# Welcome message
print "Welcome to PygLatin convertor"
# The letters which should be added to the end of the word
pyg = 'ay'