Skip to content

Smart Glasses

Picture

!Image of the Smart Glasses item

The Smart Glasses can be used as an advanced pocket computer worn on the head, equipped with most peripherials and various modules!

You can access Smart Glasses worn on the head via a Smart Glasses Interface.


Module Peripheral

The back side peripheral on Smart Glasses can be used to access modules.
Modules functions will be patched on the Module Peripheral.

1
2
local modules = peripheral.wrap('back')
print('Available modules:', table.unpack(modules.getModules()))

Note

When modifing Smart Glasses modules, Module Peripheral will reload, which triggers peripheral_detach followed by peripheral event.

Functions

getModules

getModules() -> table

returns a list of installed modules' ID.

hasModule

hasModule(id: string) -> boolean

check if the module with given ID is installed.


Changelog/Trivia

0.8
Completely reworked AR Goggles and renamed it to Smart Glasses

0.5b
Added the AR Controller and AR Goggles, made by Olfi01#6413

Comments