|
Download sys/sys-0019.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/sys/sys-0019.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@034ba678829a1c436b19d43dd3adab33b5170a80/sys/sys-0019.jsonl
-
curl -L -o sys-0019.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/sys/sys-0019.jsonl
1.54 kB
| {"type": "session", "harness": "deepseek-harness", "id": "sys-0019", "name": "Arduino programming"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} | |
| {"type": "message", "message": {"role": "user", "content": "How do I program an Arduino?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "```cpp\n// LED blink\nconst int LED_PIN = 13;\n\nvoid setup() {\n pinMode(LED_PIN, OUTPUT);\n Serial.begin(9600);\n}\n\nvoid loop() {\n digitalWrite(LED_PIN, HIGH);\n delay(1000);\n digitalWrite(LED_PIN, LOW);\n delay(1000);\n}\n\n// Analog read (sensor)\nint sensorValue = analogRead(A0);\nfloat voltage = sensorValue * (5.0 / 1023.0);\n\n// PWM output\nanalogWrite(9, 128); // 50% duty cycle\n\n// Interrupts\nvolatile bool flag = false;\nvoid isr() { flag = true; }\n\nvoid setup() {\n attachInterrupt(digitalPinToInterrupt(2), isr, RISING);\n}\n\n// I2C communication\n#include <Wire.h>\nWire.begin();\nWire.beginTransmission(0x68);\nWire.write(0x6B);\nWire.write(0);\nWire.endTransmission(true);\n\n// Serial communication\nSerial.println(\"Hello\");\nif (Serial.available()) {\n char c = Serial.read();\n}\n```"}} | |