From ebf19b43457d8e8db3a6c4122d4cfaa6d7af053d Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Thu, 22 Aug 2019 15:19:45 +0200 Subject: [PATCH] Adding more info about the ID value. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 68e7eb9..1093ec9 100644 --- a/README.md +++ b/README.md @@ -311,14 +311,22 @@ These are special areas of memory that don't really exist. Instead, they corres >>> ``` -The `CSR_VERSION_MODEL_ADDR` contains a single character that indicates what version of the hardware you have. We can convert this to a character and print it out. For a Production PVT Fomu, you might see this: +The `CSR_VERSION_MODEL_ADDR` contains a single character that indicates what version of the hardware you have. We can convert this to a character and print it out. +If you have a production board you will get `P` as shown below; ```python >>> chr(machine.mem32[0xe0007028]) 'P' >>> ``` +If you have a hacker board you will get `H` as shown below; +```python +>>> chr(machine.mem32[0xe0007028]) +'H' +>>> +``` + ### Memory-mapped RGB driver The blinking LED is actually a hardware block from Lattice. It has control registers, and we can modify these registers by writing to memory in Fomu. Some of these registers control things such as the timing of the fade in and fade out pulses, and some control the level of each of the three colors.