# Del Key Problem Solved!

**URL:** <https://forum.clockworkpi.com/t/del-key-problem-solved/17049>\
**Category:** PicoCalc\
**Created:** [April 25, 2025, 11:17pm UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049 "2025-04-25T23:17:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 25, 2025, 11:17pm UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/1 "2025-04-25T23:17:27Z")

</div>

I’m using WebCalc 6.00.02RC17 on my PicoCalc and the Del key doesn’t seem to do anything. When I press Shift-Del the cursor does go to the end of the line so I know the key itself is registering. Is this a known problem or an error in the port of WebMite to the PicoCalc?

Also, the key with the tilde on it shows a degree symbol instead of the apostrophe (or whatever that is) when no shift is pressed

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 26, 2025, 12:29am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/2 "2025-04-26T00:29:44Z")

</div>

I tried using the release binary on my github. Using the built in PicoCalc keyboard at the prompt, and also in the editor, I didn’t see this behavior.

I do know that some weirdness can happen if you’re connected using a terminal program and using a remote keyboard instead of the one on the device. I had to change a few settings on PuTTY so the keys worked ok. Here’s a screenshot of my settings that worked. I remember I not only had to set it to a VT100+ terminal, but also had to set Backspace to “Control-H”. Settings are probably different for other terminal programs, but some tweaking might be needed to get all the keyboard keys to work.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/c/c167620f8a4f6fe372465d5efcf046576d90df7e.png)

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 26, 2025, 1:29am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/3 "2025-04-26T01:29:50Z")

</div>

Thanks for answering. I’m not using a terminal, just the PicoCalc keyboard. To get Del, I just press the Del key with no Shift and no Alt.  
What is supposed to happen you press Del? Is it supposed to delete the character under the cursor and bring characters to the right of the cursor left one? That’s what I would expect but on my system, nothing happens.

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 26, 2025, 5:50am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/4 "2025-04-26T05:50:36Z")

</div>

It turns out I was wrong. ☹ I thought I had the latest version installed, but I didn’t. I can’t read the lines on the top of my display so I couldn’t see the version number at boot. I copied over the RC17 firmware and tried it again just now, and I _do_ have the problems you mentioned. The [~] key works with shift pressed, but shows the degree symbol instead of a [`]. And the [del] key does nothing, but does go to the end of the line with shift.

I didn’t try it on the Pico with the same release, but it probably has the same issue.

Created an issue to track it:

> <https://github.com/madcock/PicoMiteAllVersions/issues/1>
>
> From \[the forum post\](https://forum.clockworkpi.com/t/del-key-problem/17049):
> 
> \>… I’m using WebCalc 6.00.02RC17 on my PicoCalc and the Del key doesn’t seem to do anything. When I press Shift-Del the cursor does go to the end of the line so I know the key itself is registering. Is this a known problem or an error in the port of WebMite to the PicoCalc?
> \>
> \> Also, the key with the tilde on it shows a degree symbol instead of the apostrophe (or whatever that is) when no shift is pressed
> 
> Confirmed to be a problem on \[WebMite\_WEBRP2350\_V6.00.02RC17.uf2\](https://github.com/madcock/PicoMiteAllVersions/releases/download/V6.00.02RC17/WebMite\_WEBRP2350\_V6.00.02RC17.uf2), but it probably affects the other builds too since they share the same code.

Not sure this is something I’ll dig into soon, since it seems kind of minor, though weird and definitely a bug. But if you notice any other keys that are affected please add to that issue on github.

Does PicoMite actually use the backtick on the tilde key for anything in code? The delete key might be more useful if it was working, but the backspace works, so there’s at least a way to delete characters.

---

<div class="post-metadata">

**Author:** ![DigitalDreams](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/digitaldreams/32/16007_2.png) [@DigitalDreams](https://forum.clockworkpi.com/u/DigitalDreams)\
**Post date:** [April 26, 2025, 5:45pm UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/5 "2025-04-26T17:45:23Z")

</div>

Am I missing something huge here or don’t the images from Backshed/MMBasic sites need a few modifications for the PicoCalc or they will not work as expected !?

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 26, 2025, 7:00pm UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/6 "2025-04-26T19:00:02Z")

</div>

You are correct. Stock images won’t work properly. You have to get a modified copy from somewhere. Right now the most advanced is at [Release PicoCalc PicoMite V6.00.02RC17 · madcock/PicoMiteAllVersions · GitHub](https://github.com/madcock/PicoMiteAllVersions/releases/tag/V6.00.02RC17)  
I’m afraid we’ll always be slightly behind the latest betas.

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 26, 2025, 8:26pm UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/7 "2025-04-26T20:26:36Z")

</div>

Worth noting: the sources for the new betas don’t always get posted anyway, so even if I had the time and intention to stay up to date with every minor update made, it would be impossible. I just checked, planning to sync it up today, and realized it was impossible right now.

[Currently UKTailwind is at RC17 as shown by git history and the version number here](https://github.com/UKTailwind/PicoMiteAllVersions/blob/main/Version.h).

I still think ignoring most beta releeases is the way to go. It’s just not practical (or even possible) to try to keep up to date. I’m guessing the main point releases are more stable anyway. Less likely to require code changes in people’s BASIC programs too. Though it does seem like most of the recent changes have been new functionality and bug fixes and are still backwards compatible with existing BASIC code. But that might be because it’s late in the RC cycle so Peter doesn’t want to risk major changes. I have only been following along for a few weeks (and dipping farther back into post history on the shed) so I don’t know what the release cycles usually look like.

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 26, 2025, 10:36pm UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/8 "2025-04-26T22:36:08Z")

</div>

I know it’s not your fault. That’s the nature of third-party changes to code. We’re at the mercy of the authors to release it or not.

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 26, 2025, 11:31pm UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/9 "2025-04-26T23:31:19Z")

</div>

Del key problem solved!

The picoCalc uses 0xd4 for DEL. Others use 0x7f

Change Editor.h and Hardware\_Includes.h

Find

#define DEL 0x7f

and change to

```auto
#ifdef PICOCALC
#define DEL 0xd4
#else
#define DEL 0x7f
#endif

```

---

<div class="post-metadata">

**Author:** ![cjstoddard](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@cjstoddard](https://forum.clockworkpi.com/u/cjstoddard)\
**Post date:** [April 27, 2025, 3:49am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/10 "2025-04-27T03:49:38Z")

</div>

Has the I2c Keyboard not responding issue been solved yet? I am sticking with guu’s version, because every other build I have tried so far has exhibited that problem for me within a half hour of flashing it. Personally, I agree, there is no reason to try and keep up with Peter’s RC releases, doing a new build when a new minor revision is released is fine. Alternatively, maybe do a quarterly release in March, June, September and December.

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 27, 2025, 5:55am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/11 "2025-04-27T05:55:26Z")

</div>

Sadly, no. I realized my keyboard firmware was the original shipped version a day or so ago, so I tried flashing the updated keyboard firmware, and also tried the one [here](https://forum.clockworkpi.com/t/plans-for-keyboard-battery-stm32-firmware/17009/8) (which I kept because I like it). I was hoping maybe the new keyboard firmware would help with that disconnect issue, but it doesn’t. ☹

I guess it must be some kind of conflict with i2c (in PicoMite) going on.

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 27, 2025, 6:22am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/12 "2025-04-27T06:22:03Z")

</div>

I found some other PicoCalc projects recently on github, and decided to see if anyone else has figured out keyboard mappings, but it seems like everyone is reverse engineering it on their own since it’s not documented. (I was kind of hoping to stumble onto a mapping for the tilde/backtick key.)

[This arduino project](https://github.com/mhbvr/picocalc_experiments/blob/main/repl-editor/repl-editor.ino#L30) and [this one](https://github.com/mhbvr/picocalc_experiments/blob/main/editor/editor.ino#L20) and the [NuttX port](https://github.com/shtirlic/picocalc-nx/blob/main/src/picocalc_kbd.h), have DEL with 0xd4, but don’t have mappings for all the keys. This arduino project [should display keycodes](https://github.com/mhbvr/picocalc_experiments/tree/main/print) though. So I plan to use that and see what it tells me when I press the tilde/backtick.

---

<div class="post-metadata">

**Author:** ![thwill](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/thwill/32/9466_2.png) [@thwill](https://forum.clockworkpi.com/u/thwill)\
**Post date:** [April 27, 2025, 6:47am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/13 "2025-04-27T06:47:06Z")

</div>

Just checking that you know that there is no backtick glyph in the default PicoMite fonts. Character 96 is always rendered as the degree symbol. That isn’t a keyboard issue it’s just a PicoMite font quirk.

Best wishes,

Tom

---

<div class="post-metadata">

**Author:** ![pkr](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/pkr/32/6084_2.png) [@pkr](https://forum.clockworkpi.com/u/pkr)\
**Post date:** [April 27, 2025, 7:22am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/14 "2025-04-27T07:22:05Z")

</div>

```auto
#define KEY_BACKSPACE 0x08 
#define KEY_TAB 0x09
#define KEY_ENTER 0x0A 
// 0x0D - CARRIAGE RETURN
#define KEY_BTN_LEFT2 0x11
#define KEY_BTN_RIGHT2 0x12

#define KEY_MOD_ALT 0xA1
#define KEY_MOD_SHL 0xA2
#define KEY_MOD_SHR 0xA3
#define KEY_MOD_SYM 0xA4
#define KEY_MOD_CTRL 0xA5

#define KEY_ESC 0xB1
#define KEY_UP 0xb5
#define KEY_DOWN 0xb6
#define KEY_LEFT 0xb4
#define KEY_RIGHT 0xb7

#define KEY_BREAK 0xd0 // == KEY_PAUSE
#define KEY_INSERT 0xD1
#define KEY_HOME 0xD2
#define KEY_DEL 0xD4
#define KEY_END 0xD5
#define KEY_PAGE_UP 0xd6
#define KEY_PAGE_DOWN 0xd7

#define KEY_CAPS_LOCK 0xC1

#define KEY_F1 0x81
#define KEY_F2 0x82
#define KEY_F3 0x83
#define KEY_F4 0x84
#define KEY_F5 0x85
#define KEY_F6 0x86
#define KEY_F7 0x87
#define KEY_F8 0x88
#define KEY_F9 0x89
#define KEY_F10 0x90 

```

everything else is according to standard ASCII (` is 0x60, ~ is 0x7e, etc ..)

---

<div class="post-metadata">

**Author:** ![pkr](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/pkr/32/6084_2.png) [@pkr](https://forum.clockworkpi.com/u/pkr)\
**Post date:** [April 27, 2025, 7:30am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/15 "2025-04-27T07:30:06Z")

</div>

This is just a guess, but picomite might be using a different i2c clock frequency. The software that came with the picocalc use 10kHz, which is well below the standard 100kHz and 400kHz. I’ve tried 100kHz in micropython and it does result in connection failure after a little while.

 ![1000005987](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/9/94779d276375dcdc6b7124fd00bf252c8914c93f.png)

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 27, 2025, 9:07am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/16 "2025-04-27T09:07:36Z")

</div>

Here’s a new test build of WebMite for the Pico2(w) with the DEL key fix, and one other tweak in an effort to stop the keyboard disconnect:  
[http://ffauploads.com/WebMite\_WEBRP2350\_V6.00.02RC17a.uf2](http://ffauploads.com/WebMite_WEBRP2350_V6.00.02RC17a.uf2)

The DEL key works, but as I was typing this (and planning to leave it on for a while) the keyboard not responding error happened, so it’s still there. I looked over the i2c code in PicoMite and saw one change that I didn’t think would matter – a redefinition of a variable that had been cleaned up. And I guess it didn’t matter. Something else is going on. I compared all the defined timeouts and those seemed to match up to guu’s build.

I’ll update the release builds with the DEL key fix soon.

Changes:

```diff
diff --git a/Editor.h b/Editor.h
index affa26a..50266e6 100644
--- a/Editor.h
+++ b/Editor.h
@@ -64,7 +64,11 @@ extern int editactive;
 #define LEFT 0x82
 #define RIGHT 0x83
 #define INSERT 0x84
+#ifdef PICOCALC
+#define DEL 0xd4
+#else
 #define DEL 0x7f
+#endif
 #define HOME 0x86
 #define END 0x87
 #define PUP 0x88
diff --git a/Hardware_Includes.h b/Hardware_Includes.h
index c122736..e04ff9e 100644
--- a/Hardware_Includes.h
+++ b/Hardware_Includes.h
@@ -328,7 +328,11 @@ extern struct tagMTRand *g_myrand;
 #define DOWNSEL 0xA1
 #define RIGHTSEL 0xA3
 #define INSERT 0x84
+#ifdef PICOCALC
+#define DEL 0xd4
+#else
 #define DEL 0x7f
+#endif
 #define HOME 0x86
 #define END 0x87
 #define PUP 0x88
diff --git a/I2C.c b/I2C.c
index 02cfd08..55952d8 100644
--- a/I2C.c
+++ b/I2C.c
@@ -77,7 +77,9 @@ static char *I2C2_Rcvbuf_String; // pointer to the master receive buffe
 static unsigned int I2C2_Addr; // I2C device address
 static volatile unsigned int I2C2_Sendlen; // length of the master send buffer
 static volatile unsigned int I2C2_Rcvlen; // length of the master receive buffer
-//static unsigned char I2C_Send_Buffer[256]; // I2C send buffer
+#ifdef PICOCALC
+static unsigned char I2C_Send_Buffer[256]; // I2C send buffer
+#endif
 bool I2C2_enabled=false; // I2C enable marker
 unsigned int I2C2_Timeout; // master timeout value
 volatile unsigned int I2C2_Status; // status flags

```

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 27, 2025, 10:24am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/17 "2025-04-27T10:24:49Z")

</div>

You don’t need anything other than BASIC to show the keycodes. Try the program below and press different keys. Ctrl-C or Shift Esc will stop the program:

```auto
DO
   A$=INKEY$
   IF A$<>"" THEN PRINT HEX$(ASC(A$))
LOOP

```

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 27, 2025, 10:26am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/18 "2025-04-27T10:26:45Z")

</div>

Not a problem for me. I find the degree symbol more useful than the back tick anyway.

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 27, 2025, 11:22am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/19 "2025-04-27T11:22:10Z")

</div>

So which is better? 10kHz or 100kHz - 400kHz? Does the original Pico2 software have a kb problem?

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [April 28, 2025, 12:00am UTC](https://forum.clockworkpi.com/t/del-key-problem-solved/17049/20 "2025-04-28T00:00:01Z")

</div>

Here’s a table of changes to the PicoCalc keyboard.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/1/16cf590f3313112934047da583163570f17d6b62.png)

[Next page](https://forum.clockworkpi.com/t/del-key-problem-solved/17049.md?page=2)
