That red thing that you keep obscuring is essentially four buttons. Left, right, increase, decrease.
The code from the Basic Stamp2 will be recognizable (post it?). Many people here still have working BS2.
diagram.json for wokwi
{
"version": 1,
"author": "Anonymous maker",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-arduino-nano", "id": "nano", "top": 4.8, "left": -0.5, "attrs": {} },
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": -51.4,
"left": 134.4,
"attrs": { "color": "red" }
},
{
"type": "wokwi-pushbutton",
"id": "btn3",
"top": -99.4,
"left": 134.4,
"attrs": { "color": "green" }
},
{
"type": "wokwi-pushbutton",
"id": "btn4",
"top": -51.4,
"left": -48,
"attrs": { "color": "yellow" }
},
{
"type": "wokwi-pushbutton",
"id": "btn6",
"top": -99.4,
"left": -48,
"attrs": { "color": "blue" }
},
{
"type": "wokwi-rgb-led",
"id": "rgb1",
"top": -207.2,
"left": 20.3,
"attrs": { "common": "cathode" }
},
{
"type": "wokwi-text",
"id": "legendservo1",
"top": -86.4,
"left": -124.8,
"attrs": { "text": "L slow (45)" }
},
{
"type": "wokwi-text",
"id": "legendservo2",
"top": -38.4,
"left": -124.8,
"attrs": { "text": "L fast (0)" }
},
{
"type": "wokwi-text",
"id": "legendservo3",
"top": -86.4,
"left": 201.6,
"attrs": { "text": "R slow (135)" }
},
{
"type": "wokwi-text",
"id": "legendservo4",
"top": -38.4,
"left": 201.6,
"attrs": { "text": "R fast (180)" }
},
{ "type": "wokwi-servo", "id": "servo1", "top": -194, "left": 144, "attrs": {} },
{
"type": "wokwi-pushbutton",
"id": "btn2",
"top": -147.4,
"left": -48,
"attrs": { "color": "grey" }
},
{
"type": "wokwi-text",
"id": "legendservo5",
"top": -134.4,
"left": -124.8,
"attrs": { "text": "STOP (90)" }
}
],
"connections": [
[ "nano:GND.2", "btn1:2.l", "black", [ "v0" ] ],
[ "nano:GND.2", "btn3:2.l", "black", [ "v0" ] ],
[ "nano:2", "btn1:1.l", "orange", [ "v0" ] ],
[ "nano:GND.2", "btn4:2.r", "black", [ "v0" ] ],
[ "nano:GND.2", "btn6:2.r", "black", [ "v0" ] ],
[ "nano:6", "btn6:1.r", "blue", [ "v0" ] ],
[ "nano:7", "btn4:1.r", "yellow", [ "v0" ] ],
[ "nano:GND.2", "rgb1:COM", "black", [ "v0" ] ],
[ "nano:8", "rgb1:B", "green", [ "v0" ] ],
[ "nano:9", "rgb1:G", "green", [ "v0" ] ],
[ "nano:11", "rgb1:R", "green", [ "v0" ] ],
[ "nano:GND.2", "servo1:GND", "black", [ "v0" ] ],
[ "nano:4", "servo1:PWM", "#8f4814", [ "v0" ] ],
[ "nano:GND.2", "btn2:2.r", "black", [ "v0" ] ],
[ "nano:5V", "servo1:V+", "red", [ "v0" ] ],
[ "nano:3", "btn3:1.l", "green", [ "v0" ] ],
[ "nano:5", "btn2:1.r", "gray", [ "v0" ] ]
],
"dependencies": {}
}