You may access all modules via smartglasses.modules.
Alternatively, you can access them via peripheral.wrap('back') (not recommended).
List all modules:
12345
forname,moduleinpairs(smartglasses.modules)doifname==module.getId()thenprint('Module '..name..' has alias '..tostring(modules.getAlias()))endend
Use specific module:
1234567
-- turn off night visionifnotsmartglasses.modules['advancedperipherals:night_vision']thenerror('Night vision module is not equipped')endsmartglasses.modules['advancedperipherals:night_vision'].enableNightVision(false)-- use module IDsmartglasses.modules.nightVision.enableNightVision(false)-- use module alias name