Introduction to Gokino

Gokino is the world's first deeply AI-integrated IDE designed specifically for embedded development. This guide will help you understand how Gokino differs from the traditional Arduino IDE and how to set up your first project.

New in v2.0

The Gokino AI Agent now supports ESP32 and Raspberry Pi Pico with real-time memory profiling.

Why Gokino?

Traditional embedded programming involves managing toolchains, drivers, and obscure compilation errors. Gokino abstracts this complexity into the cloud.

  • Zero Setup: Open your browser, connect your board via WebUSB, and code.
  • Context-Aware AI: Our AI doesn't just autocomplete text; it understands pinouts, sensor libraries, and electrical constraints.
  • Collaboration: Share a link to your project, and your team can flash the same firmware instantly.

Connect Your Board

Since Gokino runs in the browser, you don't need to install heavy software. However, you need a browser that supports the Web Serial API (Chrome, Edge, Opera).

Linux Users

You may need to add your user to the dialout group to access USB ports. Run sudo usermod -a -G dialout $USER and restart.

Your First Sketch

Let's write a simple program that uses the AI to optimize blinking.

sketch.ino
// Define a non-blocking delay constant
const long interval = 1000; 
unsigned long previousMillis = 0;

void setup() {
  // Built-in LED pin is usually 13
  pinMode(LED_BUILTIN, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  unsigned long currentMillis = millis();

  // Example of non-blocking logic suggested by Gokino AI
  if (currentMillis - previousMillis >= interval) {
    previousMillis = currentMillis;
    
    int ledState = digitalRead(LED_BUILTIN);
    digitalWrite(LED_BUILTIN, !ledState);
    
    Serial.println("State flipped!");
  }
}

Once you paste this code, look at the AI Insights tab in the IDE. It will likely tell you that using millis() is preferred over delay() for multitasking.