Skip to content

Instantly share code, notes, and snippets.

View Pixelbo's full-sized avatar
🇧🇪

Boris Pixelbo

🇧🇪
  • INSA Rennes
View GitHub Profile
@Pixelbo
Pixelbo / doc.md
Last active April 5, 2022 09:16 — forked from wwylele/doc.md
WIP 3DS CEC doc

3DS CEC (StreetPass) Documentation

Overall Model

The CEC system module consists of two main components: mailbox manager and StreetPass communicator. Both work on the system save 00010026, which stores all mailbox information and message data. A simplified diagram of CEC communication model is

Application <=> Mailbox Manager <=> System Save (Mailbox) <=> StreetPass communicator <=> NWM/network <=> StreetPass communicator of another 3DS <=> ...

Many CEC service (cecd:u and cecd:s) functions are interfaces exposed from the mailbox manager, which read and write the system save. The mailbox manager is essentially a thick layer over direct file IO, which performances data initialization and verification on top of raw system data read/write.

import pyscreenshot as ImageGrab
import cv2
import numpy as np
import time
numbers = [r"D:\2048-2.png", r"D:\2048-4.png", r"D:\2048-8.png", r"D:\2048-16.png"]
colors = [(255, 0, 0), (0, 255, 0), (0, 0, 255), (255, 0, 255)]
x = []
y = []
centerx = []