Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
local component = require("component") local sides = require("sides") -- Finde deinen Adapter local adapter = component.adapter print("=== Adapter Analysis ===") print("Adapter Address: " .. adapter.address) print("") -- Prüfe alle 6 Seiten des Adapters for side = 0, 5 do local sideName = sides[side] print("--- Side: " .. sideName .. " ---") -- Versuche Methoden für diese Seite zu bekommen local success, methods = pcall(function() return adapter.methods(side) end) if success and methods and #methods > 0 then print("Found component with methods:") for i, method in ipairs(methods) do print(" " .. i .. ". " .. method) end -- Versuche auch den Typ zu bekommen local typeSuccess, componentType = pcall(function() return adapter.type(side) end) if typeSuccess and componentType then print("Component Type: " .. componentType) end else print(" No component detected") end print("") end
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)