From e2936761a1f744720991e38d126433ba1453c44e Mon Sep 17 00:00:00 2001
From: Neil Gershenfeld <gersh@cba.mit.edu>
Date: Mon, 26 Dec 2022 13:11:41 -0500
Subject: [PATCH] wip

---
 GPIO/RP2040/ring.RP2040.py | 15 ++++++++++-----
 index.html                 | 14 +++++++-------
 2 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/GPIO/RP2040/ring.RP2040.py b/GPIO/RP2040/ring.RP2040.py
index 39f2ae4..88a0637 100644
--- a/GPIO/RP2040/ring.RP2040.py
+++ b/GPIO/RP2040/ring.RP2040.py
@@ -12,8 +12,13 @@
 # warranty is provided, and users accept all liability.
 #
 from machine import Pin
-machine.freq(133000000)
-p1 = Pin(1,Pin.IN)
-p2 = Pin(2,Pin.OUT)
-while (True):
-    p2.value(1-p1.value())
+
+@micropython.native
+def run():
+   p1 = Pin(1,Pin.IN)
+   p2 = Pin(2,Pin.OUT)
+   while (True):
+       p2(not p1())
+
+machine.freq(250000000)
+run()
diff --git a/index.html b/index.html
index 389c4c7..f372063 100644
--- a/index.html
+++ b/index.html
@@ -158,6 +158,13 @@ The GPIO test measures how quickly pins can communicate with a processor core; t
 <td>December 2022</td>
 </tr>
 
+<tr>
+<td>.350</td>
+<td>RP2040</td>
+<td><a href=GPIO/RP2040/ring.RP2040.py>MicroPython</a></td>
+<td>December 2022</td>
+</tr>
+
 <tr>
 <td>.345</td>
 <td>Raspberry Pi 4</td>
@@ -186,13 +193,6 @@ The GPIO test measures how quickly pins can communicate with a processor core; t
 <td>December 2020</td>
 </tr>
 
-<tr>
-<td>.039</td>
-<td>RP2040</td>
-<td><a href=GPIO/RP2040/ring.RP2040.py>MicroPython</a></td>
-<td>December 2022</td>
-</tr>
-
 <tr>
 <td>.029</td>
 <td>Raspberry Pi 4</td>
-- 
GitLab