How nflsdq/logiclab2 works
LogicLab Vision is a mobile learning app for digital logic gates. Users can enter binary inputs and choose a gate manually, or scan inputs and a gate with the camera; both routes lead to a result screen that calculates the output and displays a truth table. Separate learning screens explain gate basics, symbols, and truth tables. The model utility loads bundled TensorFlow models for image recognition. Connections reflect the shown navigation and calls; unsampled screen behavior is not inferred.
Main entry points: App.tsx App Router · Home.tsx Home · tensorflowModel.ts Model Inference · ManualInputScreen.tsx Manual Inputs
Components 13
App Navigation
- Home
components/Home.tsx - App Router
App.tsx
Gate Evaluation
- Manual Inputs
components/ManualInputScreen.tsx - Camera Scan
components/ScanScreen.tsx - Gate Logic
utils/logicGates.ts - Result View
components/ResultScreen.tsx
Learning Content
- Learning Topics
components/LearnScreen.tsx - Gate Basics
components/BasicLogicGatesScreen.tsx - Truth Tables
components/TruthTablesScreen.tsx - Gate Symbols
components/LogicGateSymbolsScreen.tsx
Image Recognition
- Model Inference
utils/tensorflowModel.ts - Input Model
assets/models/input-model/model.json - Gate Model
assets/models/gate-model/model.json
Connections 17
- Home → App Router: navigates via
components/Home.tsx - App Router → Home: registers
App.tsx - App Router → Camera Scan: registers
App.tsx - App Router → Manual Inputs: registers
App.tsx - App Router → Result View: registers
App.tsx - App Router → Learning Topics: registers
App.tsx - App Router → Gate Basics: registers
App.tsx - App Router → Truth Tables: registers
App.tsx - App Router → Gate Symbols: registers
App.tsx - Home → Camera Scan: opens
components/Home.tsx - Home → Manual Inputs: opens
components/Home.tsx - Home → Learning Topics: opens
components/Home.tsx - Manual Inputs → Gate Logic: uses
components/ManualInputScreen.tsx - Result View → Gate Logic: calculates with
components/ResultScreen.tsx - Camera Scan → Model Inference: predicts with
components/ScanScreen.tsx - Model Inference → Input Model: loads
utils/tensorflowModel.ts - Model Inference → Gate Model: loads
utils/tensorflowModel.ts