
admin
Arduino reading and writing string to EEPROM
读取和写入任何结构EEPROM
#include <EEPROM.h> template <class T> int EEPROM_writeAnything(int ee, const T& value) template <class T> int EEPROM_readAnything(int ee, T& value) |
#include <EEPROM.h>
#include "EEPROMAnything.h" struct config_t
{ long alarm; int mode; } configuration; void setup()
{ EEPROM_readAnything(0, configuration); // ... } void loop() { // let the user adjust their alarm settings // let the user adjust their mode settings // ... // if they push the "Save" button, save their configuration
if (digitalRead(13) == HIGH) EEPROM_writeAnything(0, configuration); } |
#include <avr/eeprom.h> struct settings_t void setup() // if they push the "Save" button, save their configuration |
Arduino and Stronglink SL018 RFID module

Model
|
MIFARE Module SL018
|
Frequency
|
13.56MHz
|
Protocol
|
ISO14443A
|
Tag supported
|
Ultralight, NTAG203, MIFARE Mini, MIFARE ™ Classic 1K, 4K MIFARE Classic ™, FM11RF08
|
Interface
|
I2C
|
Supply voltage
|
4.4 - 7.0VDC
|
Dimension
|
65 × 45 mm
|
Arduino读取键盘

首先必须安装Arduino Keypad键盘库(Keypad library),Arduino Keypad键盘库可以从Arduino Playground下载。Arduino Keypad键盘库让你读取矩阵式键盘而不用编写复杂的代码,此键盘库可以读取3x4, 4x4以及各种矩阵结构的键盘。
Arduino与Stronglink SL018 RFID模块
Model
|
MIFARE Module SL018
|
Frequency
|
13.56MHz
|
Protocol
|
ISO14443A
|
Tag supported
|
Ultralight, NTAG203, MIFARE Mini, MIFARE™ Classic 1K, MIFARE™ Classic 4K, FM11RF08
|
Interface
|
I2C
|
Supply voltage
|
4.4 - 7.0VDC
|
Dimension
|
65 × 45 mm
|
Resizing SD card partitions for Raspberry Pi
If you download the Raspbian image from Raspberry Pi official homepage and write it to the SD card, the SD card partition is fixed to 2GB, meaning that only 2GB is accessible no matter how big your SD card are. You must manually re-size the SD card partition in order to increase the available storage capacity.
Develop Android Application without Coding
App Inventor is an application use to develop Android application without programming. Its graphical interface is very similar to Scratch that allow users to drag and drop visual objects to develop application which runs on many mobile devices.
Backing Up Raspberry Pi SD card
- Insert SD card to computer
- Launch Win32 Disk Imager
- Select Device (source) which you want to backup from
- Under Image File, give it a file name as shown in figure below

- Click Read button to start backing up
- As shown in figure below, the image file size is equivalent to the size of SD card since I had resized the partition of my SD card

Running raspi-config anytime anywhere
sudo raspi-config
Gambas for Raspberry Pi
- After download the image file (it is zipped), extract it to any location of computer. Now your computer should have an image file named as 2012-07-15-wheezy-gambas3.img
- Write this img file to SD card using Win32DiskImager as describe in this article
- Remove the SD card from computer once writing completed
- Insert the SD card to Raspberry Pi & power on it.
- Remote access to Raspberry using TightVNC as describe in this article
- You should see Gambas icon appear on the desktop screen.
- To start Gambas3, click the first icon at the left bottom screen then select Programming>Gambas3
People find that they are facing 100% CPU usage when using Gambas3, you can use the patch to overcome this problem.