mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
19 lines
533 B
Go
19 lines
533 B
Go
//go:build !linux
|
|
|
|
package tools
|
|
|
|
// scan is a stub for non-Linux platforms.
|
|
func (t *I2CTool) scan(args map[string]any) *ToolResult {
|
|
return ErrorResult("I2C is only supported on Linux")
|
|
}
|
|
|
|
// readDevice is a stub for non-Linux platforms.
|
|
func (t *I2CTool) readDevice(args map[string]any) *ToolResult {
|
|
return ErrorResult("I2C is only supported on Linux")
|
|
}
|
|
|
|
// writeDevice is a stub for non-Linux platforms.
|
|
func (t *I2CTool) writeDevice(args map[string]any) *ToolResult {
|
|
return ErrorResult("I2C is only supported on Linux")
|
|
}
|